summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.bin/mandoc')
-rw-r--r--regress/usr.bin/mandoc/man/RS/REarg.in11
-rw-r--r--regress/usr.bin/mandoc/man/RS/REarg.out_ascii2
-rw-r--r--regress/usr.bin/mandoc/man/RS/REarg.out_lint14
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/esc.in19
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/esc.out_ascii15
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/esc.out_markdown25
-rw-r--r--regress/usr.bin/mandoc/mdoc/Eo/Makefile5
-rw-r--r--regress/usr.bin/mandoc/mdoc/Eo/arg.in25
-rw-r--r--regress/usr.bin/mandoc/mdoc/Eo/arg.out_ascii15
-rw-r--r--regress/usr.bin/mandoc/mdoc/Eo/arg.out_markdown17
-rw-r--r--regress/usr.bin/mandoc/mdoc/Eo/arg.out_utf815
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fd/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fd/arg.in16
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fd/arg.out_ascii15
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fd/arg.out_markdown17
-rw-r--r--regress/usr.bin/mandoc/mdoc/Li/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Li/arg.in20
-rw-r--r--regress/usr.bin/mandoc/mdoc/Li/arg.out_ascii15
-rw-r--r--regress/usr.bin/mandoc/mdoc/Li/arg.out_markdown21
-rw-r--r--regress/usr.bin/mandoc/mdoc/Ns/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Ns/arg.in13
-rw-r--r--regress/usr.bin/mandoc/mdoc/Ns/arg.out_ascii10
-rw-r--r--regress/usr.bin/mandoc/mdoc/Ns/arg.out_markdown14
-rw-r--r--regress/usr.bin/mandoc/mdoc/Op/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Op/arg.in20
-rw-r--r--regress/usr.bin/mandoc/mdoc/Op/arg.out_ascii15
-rw-r--r--regress/usr.bin/mandoc/mdoc/Op/arg.out_markdown21
-rw-r--r--regress/usr.bin/mandoc/roff/args/mdoc.out_lint16
29 files changed, 365 insertions, 31 deletions
diff --git a/regress/usr.bin/mandoc/man/RS/REarg.in b/regress/usr.bin/mandoc/man/RS/REarg.in
index 27af50174c1..7901d3cf9ca 100644
--- a/regress/usr.bin/mandoc/man/RS/REarg.in
+++ b/regress/usr.bin/mandoc/man/RS/REarg.in
@@ -1,8 +1,9 @@
-.\" $OpenBSD: REarg.in,v 1.3 2017/07/04 14:53:23 schwarze Exp $
-.TH RS-REARG 1 "January 24, 2015"
+.\" $OpenBSD: REarg.in,v 1.4 2018/12/21 16:58:49 schwarze Exp $
+.TH RS-REARG 1 "December 21, 2018"
.SH NAME
RS-REarg \- arguments to the RE macro
.SH DESCRIPTION
+.nr one 1
level 1
.RS 4n 2i
level 2
@@ -10,13 +11,13 @@ level 2
level 3
.RE 2a
back to 2
-.RE 1b
+.RE \n[one]b
back to 1
.RS 4n
level 2
.RS 2n
level 3
-.RE 1c
+.RE "\\n[one]c"
back to 1
.RS 4n
level 2
@@ -24,4 +25,4 @@ level 2
level 3
.RE 0d
back to 1
-.RE 1e
+.RE \\n[one]e
diff --git a/regress/usr.bin/mandoc/man/RS/REarg.out_ascii b/regress/usr.bin/mandoc/man/RS/REarg.out_ascii
index 747e037be3a..45326a8857d 100644
--- a/regress/usr.bin/mandoc/man/RS/REarg.out_ascii
+++ b/regress/usr.bin/mandoc/man/RS/REarg.out_ascii
@@ -20,4 +20,4 @@ DDEESSCCRRIIPPTTIIOONN
-OpenBSD January 24, 2015 RS-REARG(1)
+OpenBSD December 21, 2018 RS-REARG(1)
diff --git a/regress/usr.bin/mandoc/man/RS/REarg.out_lint b/regress/usr.bin/mandoc/man/RS/REarg.out_lint
index 457ccb150bf..a912a7e52ff 100644
--- a/regress/usr.bin/mandoc/man/RS/REarg.out_lint
+++ b/regress/usr.bin/mandoc/man/RS/REarg.out_lint
@@ -1,7 +1,7 @@
-mandoc: REarg.in:7:8: ERROR: skipping excess arguments: RS ... 2i
-mandoc: REarg.in:11:6: ERROR: skipping excess arguments: RE ... a
-mandoc: REarg.in:13:6: ERROR: skipping excess arguments: RE ... b
-mandoc: REarg.in:19:6: ERROR: skipping excess arguments: RE ... c
-mandoc: REarg.in:25:6: ERROR: skipping excess arguments: RE ... d
-mandoc: REarg.in:27:6: ERROR: skipping excess arguments: RE ... e
-mandoc: REarg.in:27:2: ERROR: fewer RS blocks open, skipping: RE 1
+mandoc: REarg.in:8:8: ERROR: skipping excess arguments: RS ... 2i
+mandoc: REarg.in:12:6: ERROR: skipping excess arguments: RE ... a
+mandoc: REarg.in:14:6: ERROR: skipping excess arguments: RE ... b
+mandoc: REarg.in:20:7: ERROR: skipping excess arguments: RE ... c
+mandoc: REarg.in:26:6: ERROR: skipping excess arguments: RE ... d
+mandoc: REarg.in:28:6: ERROR: skipping excess arguments: RE ... e
+mandoc: REarg.in:28:2: ERROR: fewer RS blocks open, skipping: RE 1
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/Makefile b/regress/usr.bin/mandoc/mdoc/Bl/Makefile
index deda0bf7381..8fde5d9e07e 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Bl/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.39 2017/07/16 17:53:29 schwarze Exp $
+# $OpenBSD: Makefile,v 1.40 2018/12/21 16:58:49 schwarze Exp $
REGRESS_TARGETS = item inset diag ohang bullet dash enum hang tag
REGRESS_TARGETS += column column_nogroff colNoIt
-REGRESS_TARGETS += extend nested offset secstart
+REGRESS_TARGETS += esc extend nested offset secstart
REGRESS_TARGETS += notype multitype badargs
REGRESS_TARGETS += empty noIt emptyhead emptytag emptyitem multitag
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/esc.in b/regress/usr.bin/mandoc/mdoc/Bl/esc.in
new file mode 100644
index 00000000000..343ccc7de94
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/esc.in
@@ -0,0 +1,19 @@
+.\" $OpenBSD: esc.in,v 1.1 2018/12/21 16:58:49 schwarze Exp $
+.Dd $Mdocdate: December 21 2018 $
+.Dt BL-ESC 1
+.Os
+.Sh NAME
+.Nm Bl-esc
+.Nd escape sequences in full block macro heads
+.Sh DESCRIPTION
+.ds a \(at
+.Bl -tag -width 2n
+.It \*a
+unquoted unescaped
+.It "\*a"
+quoted unescaped
+.It \\*a
+unquoted escaped
+.It "\\*a"
+quoted escaped
+.El
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/esc.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/esc.out_ascii
new file mode 100644
index 00000000000..e73c929f5b0
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/esc.out_ascii
@@ -0,0 +1,15 @@
+BL-ESC(1) General Commands Manual BL-ESC(1)
+
+NNAAMMEE
+ BBll--eesscc - escape sequences in full block macro heads
+
+DDEESSCCRRIIPPTTIIOONN
+ @ unquoted unescaped
+
+ @ quoted unescaped
+
+ @ unquoted escaped
+
+ @ quoted escaped
+
+OpenBSD December 21, 2018 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/esc.out_markdown b/regress/usr.bin/mandoc/mdoc/Bl/esc.out_markdown
new file mode 100644
index 00000000000..780a61b8f84
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/esc.out_markdown
@@ -0,0 +1,25 @@
+BL-ESC(1) - General Commands Manual
+
+# NAME
+
+**Bl-esc** - escape sequences in full block macro heads
+
+# DESCRIPTION
+
+@
+
+> unquoted unescaped
+
+@
+
+> quoted unescaped
+
+@
+
+> unquoted escaped
+
+@
+
+> quoted escaped
+
+OpenBSD - December 21, 2018
diff --git a/regress/usr.bin/mandoc/mdoc/Eo/Makefile b/regress/usr.bin/mandoc/mdoc/Eo/Makefile
index f8889a8f05b..1e101aceb97 100644
--- a/regress/usr.bin/mandoc/mdoc/Eo/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Eo/Makefile
@@ -1,6 +1,7 @@
-# $OpenBSD: Makefile,v 1.7 2017/03/08 22:53:35 schwarze Exp $
+# $OpenBSD: Makefile,v 1.8 2018/12/21 16:58:49 schwarze Exp $
-REGRESS_TARGETS = break empty obsolete unclosed
+REGRESS_TARGETS = arg break empty obsolete unclosed
+UTF8_TARGETS = arg
LINT_TARGETS = break obsolete unclosed
# groff-1.22.3 defect:
diff --git a/regress/usr.bin/mandoc/mdoc/Eo/arg.in b/regress/usr.bin/mandoc/mdoc/Eo/arg.in
new file mode 100644
index 00000000000..dd7928a740f
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Eo/arg.in
@@ -0,0 +1,25 @@
+.\" $OpenBSD: arg.in,v 1.1 2018/12/21 16:58:49 schwarze Exp $
+.Dd $Mdocdate: December 21 2018 $
+.Dt EO-ARG 1
+.Os
+.Sh NAME
+.Nm Eo-arg
+.Nd escapes in arguments of enclosure macros
+.Sh DESCRIPTION
+.ds o \(Fo
+.ds c \(Fc
+.Eo \*o
+unquoted unescaped
+.Ec \*c
+.Pp
+.Eo "\*o"
+quoted unescaped
+.Ec "\*c"
+.Pp
+.Eo \\*o
+unquoted escaped
+.Ec \\*c
+.Pp
+.Eo "\\*o"
+quoted escaped
+.Ec "\\*c"
diff --git a/regress/usr.bin/mandoc/mdoc/Eo/arg.out_ascii b/regress/usr.bin/mandoc/mdoc/Eo/arg.out_ascii
new file mode 100644
index 00000000000..004c3fe5804
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Eo/arg.out_ascii
@@ -0,0 +1,15 @@
+EO-ARG(1) General Commands Manual EO-ARG(1)
+
+NNAAMMEE
+ EEoo--aarrgg - escapes in arguments of enclosure macros
+
+DDEESSCCRRIIPPTTIIOONN
+ <<unquoted unescaped>>
+
+ <<quoted unescaped>>
+
+ <<unquoted escaped>>
+
+ <<quoted escaped>>
+
+OpenBSD December 21, 2018 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Eo/arg.out_markdown b/regress/usr.bin/mandoc/mdoc/Eo/arg.out_markdown
new file mode 100644
index 00000000000..9da6ff4fd5d
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Eo/arg.out_markdown
@@ -0,0 +1,17 @@
+EO-ARG(1) - General Commands Manual
+
+# NAME
+
+**Eo-arg** - escapes in arguments of enclosure macros
+
+# DESCRIPTION
+
+&#171;unquoted unescaped&#187;
+
+&#171;quoted unescaped&#187;
+
+&#171;unquoted escaped&#187;
+
+&#171;quoted escaped&#187;
+
+OpenBSD - December 21, 2018
diff --git a/regress/usr.bin/mandoc/mdoc/Eo/arg.out_utf8 b/regress/usr.bin/mandoc/mdoc/Eo/arg.out_utf8
new file mode 100644
index 00000000000..3b4a30bd138
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Eo/arg.out_utf8
@@ -0,0 +1,15 @@
+EO-ARG(1) General Commands Manual EO-ARG(1)
+
+NNAAMMEE
+ EEoo--aarrgg – escapes in arguments of enclosure macros
+
+DDEESSCCRRIIPPTTIIOONN
+ «unquoted unescaped»
+
+ «quoted unescaped»
+
+ «unquoted escaped»
+
+ «quoted escaped»
+
+OpenBSD December 21, 2018 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Fd/Makefile b/regress/usr.bin/mandoc/mdoc/Fd/Makefile
index d2daf08bd92..39b07f1d0d8 100644
--- a/regress/usr.bin/mandoc/mdoc/Fd/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Fd/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.6 2017/03/08 22:53:35 schwarze Exp $
+# $OpenBSD: Makefile,v 1.7 2018/12/21 16:58:49 schwarze Exp $
-REGRESS_TARGETS = break empty eos font
+REGRESS_TARGETS = arg break empty eos font
LINT_TARGETS = empty
SKIP_TMAN = eos
diff --git a/regress/usr.bin/mandoc/mdoc/Fd/arg.in b/regress/usr.bin/mandoc/mdoc/Fd/arg.in
new file mode 100644
index 00000000000..659d03c9b53
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fd/arg.in
@@ -0,0 +1,16 @@
+.\" $OpenBSD: arg.in,v 1.1 2018/12/21 16:58:49 schwarze Exp $
+.Dd $Mdocdate: December 21 2018 $
+.Dt FD-ARG 2
+.Os
+.Sh NAME
+.Nm Fd-arg
+.Nd escape sequences in the arguments of in-line EOL macros
+.Sh DESCRIPTION
+.ds s \(sh
+.Fd \*sunquoted unescaped
+.Pp
+.Fd "\*squoted" unescaped
+.Pp
+.Fd \\*sunquoted escaped
+.Pp
+.Fd "\\*squoted" escaped
diff --git a/regress/usr.bin/mandoc/mdoc/Fd/arg.out_ascii b/regress/usr.bin/mandoc/mdoc/Fd/arg.out_ascii
new file mode 100644
index 00000000000..42836e614a8
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fd/arg.out_ascii
@@ -0,0 +1,15 @@
+FD-ARG(2) System Calls Manual FD-ARG(2)
+
+NNAAMMEE
+ FFdd--aarrgg - escape sequences in the arguments of in-line EOL macros
+
+DDEESSCCRRIIPPTTIIOONN
+ ##uunnqquuootteedd uunneessccaappeedd
+
+ ##qquuootteedd uunneessccaappeedd
+
+ ##uunnqquuootteedd eessccaappeedd
+
+ ##qquuootteedd eessccaappeedd
+
+OpenBSD December 21, 2018 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Fd/arg.out_markdown b/regress/usr.bin/mandoc/mdoc/Fd/arg.out_markdown
new file mode 100644
index 00000000000..14dba6fc52a
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fd/arg.out_markdown
@@ -0,0 +1,17 @@
+FD-ARG(2) - System Calls Manual
+
+# NAME
+
+**Fd-arg** - escape sequences in the arguments of in-line EOL macros
+
+# DESCRIPTION
+
+**&#35;unquoted unescaped**
+
+**&#35;quoted unescaped**
+
+**&#35;unquoted escaped**
+
+**&#35;quoted escaped**
+
+OpenBSD - December 21, 2018
diff --git a/regress/usr.bin/mandoc/mdoc/Li/Makefile b/regress/usr.bin/mandoc/mdoc/Li/Makefile
index 197e61375b6..7b2a3313c5a 100644
--- a/regress/usr.bin/mandoc/mdoc/Li/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Li/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.6 2017/03/08 22:53:35 schwarze Exp $
+# $OpenBSD: Makefile,v 1.7 2018/12/21 16:58:49 schwarze Exp $
-REGRESS_TARGETS = punct font
+REGRESS_TARGETS = arg punct font
LINT_TARGETS = punct
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/mdoc/Li/arg.in b/regress/usr.bin/mandoc/mdoc/Li/arg.in
new file mode 100644
index 00000000000..d6c806725f5
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Li/arg.in
@@ -0,0 +1,20 @@
+.\" $OpenBSD: arg.in,v 1.1 2018/12/21 16:58:49 schwarze Exp $
+.Dd $Mdocdate: December 21 2018 $
+.Dt LI-ARG 1
+.Os
+.Sh NAME
+.Nm Li-arg
+.Nd escape sequences in arguments of in-line macros
+.Sh DESCRIPTION
+.ds a \(at
+unquoted unescaped:
+.Li \*a
+.Pp
+quoted unescaped:
+.Li "\*a"
+.Pp
+unquoted escaped:
+.Li \\*a
+.Pp
+quoted escaped:
+.Li "\\*a"
diff --git a/regress/usr.bin/mandoc/mdoc/Li/arg.out_ascii b/regress/usr.bin/mandoc/mdoc/Li/arg.out_ascii
new file mode 100644
index 00000000000..f0a69f18c82
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Li/arg.out_ascii
@@ -0,0 +1,15 @@
+LI-ARG(1) General Commands Manual LI-ARG(1)
+
+NNAAMMEE
+ LLii--aarrgg - escape sequences in arguments of in-line macros
+
+DDEESSCCRRIIPPTTIIOONN
+ unquoted unescaped: @
+
+ quoted unescaped: @
+
+ unquoted escaped: @
+
+ quoted escaped: @
+
+OpenBSD December 21, 2018 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Li/arg.out_markdown b/regress/usr.bin/mandoc/mdoc/Li/arg.out_markdown
new file mode 100644
index 00000000000..1b0ba54e809
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Li/arg.out_markdown
@@ -0,0 +1,21 @@
+LI-ARG(1) - General Commands Manual
+
+# NAME
+
+**Li-arg** - escape sequences in arguments of in-line macros
+
+# DESCRIPTION
+
+unquoted unescaped:
+`@`
+
+quoted unescaped:
+`@`
+
+unquoted escaped:
+`@`
+
+quoted escaped:
+`@`
+
+OpenBSD - December 21, 2018
diff --git a/regress/usr.bin/mandoc/mdoc/Ns/Makefile b/regress/usr.bin/mandoc/mdoc/Ns/Makefile
index a13fa6deeee..b2c409ab1f6 100644
--- a/regress/usr.bin/mandoc/mdoc/Ns/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Ns/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.7 2017/03/08 22:53:35 schwarze Exp $
+# $OpenBSD: Makefile,v 1.8 2018/12/21 16:58:49 schwarze Exp $
-REGRESS_TARGETS = position punct
+REGRESS_TARGETS = arg position punct
LINT_TARGETS = position
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/mdoc/Ns/arg.in b/regress/usr.bin/mandoc/mdoc/Ns/arg.in
new file mode 100644
index 00000000000..b83a1f4ad3c
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Ns/arg.in
@@ -0,0 +1,13 @@
+.\" $OpenBSD: arg.in,v 1.1 2018/12/21 16:58:49 schwarze Exp $
+.Dd $Mdocdate: December 21 2018 $
+.Dt NS-ARG 1
+.Os
+.Sh NAME
+.Nm Ns-arg
+.Nd escape sequences in the arguments of in-line macros with an argument limit
+.Sh DESCRIPTION
+.ds a \(at
+.No unquoted unescaped Ns \*a
+.No quoted unescaped Ns "\*a"
+.No unquoted escaped Ns \\*a
+.No quoted escaped Ns "\\*a"
diff --git a/regress/usr.bin/mandoc/mdoc/Ns/arg.out_ascii b/regress/usr.bin/mandoc/mdoc/Ns/arg.out_ascii
new file mode 100644
index 00000000000..2b8a51047ba
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Ns/arg.out_ascii
@@ -0,0 +1,10 @@
+NS-ARG(1) General Commands Manual NS-ARG(1)
+
+NNAAMMEE
+ NNss--aarrgg - escape sequences in the arguments of in-line macros with an
+ argument limit
+
+DDEESSCCRRIIPPTTIIOONN
+ unquoted unescaped@ quoted unescaped@ unquoted escaped@ quoted escaped@
+
+OpenBSD December 21, 2018 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Ns/arg.out_markdown b/regress/usr.bin/mandoc/mdoc/Ns/arg.out_markdown
new file mode 100644
index 00000000000..7d60059040f
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Ns/arg.out_markdown
@@ -0,0 +1,14 @@
+NS-ARG(1) - General Commands Manual
+
+# NAME
+
+**Ns-arg** - escape sequences in the arguments of in-line macros with an argument limit
+
+# DESCRIPTION
+
+unquoted unescaped&#64;
+quoted unescaped&#64;
+unquoted escaped&#64;
+quoted escaped&#64;
+
+OpenBSD - December 21, 2018
diff --git a/regress/usr.bin/mandoc/mdoc/Op/Makefile b/regress/usr.bin/mandoc/mdoc/Op/Makefile
index 6bac1ba857f..b2a79566769 100644
--- a/regress/usr.bin/mandoc/mdoc/Op/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Op/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.6 2017/06/10 01:48:31 schwarze Exp $
+# $OpenBSD: Makefile,v 1.7 2018/12/21 16:58:49 schwarze Exp $
-REGRESS_TARGETS = break broken punct
+REGRESS_TARGETS = arg break broken punct
LINT_TARGETS = break broken punct
SKIP_GROFF = break
diff --git a/regress/usr.bin/mandoc/mdoc/Op/arg.in b/regress/usr.bin/mandoc/mdoc/Op/arg.in
new file mode 100644
index 00000000000..2043b01e082
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Op/arg.in
@@ -0,0 +1,20 @@
+.\" $OpenBSD: arg.in,v 1.1 2018/12/21 16:58:49 schwarze Exp $
+.Dd $Mdocdate: December 21 2018 $
+.Dt OP-ARG 1
+.Os
+.Sh NAME
+.Nm Op-arg
+.Nd escape sequences in the arguments of partial implicit macros
+.Sh DESCRIPTION
+.ds a \(at
+unquoted unescaped:
+.Op \*a
+.Pp
+quoted unescaped:
+.Op "\*a"
+.Pp
+unquoted escaped:
+.Op \\*a
+.Pp
+quoted escaped:
+.Op "\\*a"
diff --git a/regress/usr.bin/mandoc/mdoc/Op/arg.out_ascii b/regress/usr.bin/mandoc/mdoc/Op/arg.out_ascii
new file mode 100644
index 00000000000..534917cb01b
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Op/arg.out_ascii
@@ -0,0 +1,15 @@
+OP-ARG(1) General Commands Manual OP-ARG(1)
+
+NNAAMMEE
+ OOpp--aarrgg - escape sequences in the arguments of partial implicit macros
+
+DDEESSCCRRIIPPTTIIOONN
+ unquoted unescaped: [@]
+
+ quoted unescaped: [@]
+
+ unquoted escaped: [@]
+
+ quoted escaped: [@]
+
+OpenBSD December 21, 2018 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Op/arg.out_markdown b/regress/usr.bin/mandoc/mdoc/Op/arg.out_markdown
new file mode 100644
index 00000000000..5ad86f7d05a
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Op/arg.out_markdown
@@ -0,0 +1,21 @@
+OP-ARG(1) - General Commands Manual
+
+# NAME
+
+**Op-arg** - escape sequences in the arguments of partial implicit macros
+
+# DESCRIPTION
+
+unquoted unescaped:
+\[&#64;]
+
+quoted unescaped:
+\[&#64;]
+
+unquoted escaped:
+\[&#64;]
+
+quoted escaped:
+\[&#64;]
+
+OpenBSD - December 21, 2018
diff --git a/regress/usr.bin/mandoc/roff/args/mdoc.out_lint b/regress/usr.bin/mandoc/roff/args/mdoc.out_lint
index f4715ba21ad..4422d754f9b 100644
--- a/regress/usr.bin/mandoc/roff/args/mdoc.out_lint
+++ b/regress/usr.bin/mandoc/roff/args/mdoc.out_lint
@@ -4,10 +4,14 @@ mandoc: mdoc.in:46:15: STYLE: whitespace at end of input line
mandoc: mdoc.in:86:25: STYLE: whitespace at end of input line
mandoc: mdoc.in:90:26: STYLE: whitespace at end of input line
mandoc: mdoc.in:94:27: STYLE: whitespace at end of input line
-mandoc: mdoc.in:102:9: STYLE: unterminated quoted argument
-mandoc: mdoc.in:103:13: STYLE: unterminated quoted argument
-mandoc: mdoc.in:107:10: STYLE: unterminated quoted argument
-mandoc: mdoc.in:108:14: STYLE: unterminated quoted argument
-mandoc: mdoc.in:112:11: STYLE: unterminated quoted argument
-mandoc: mdoc.in:113:15: STYLE: unterminated quoted argument
+mandoc: mdoc.in:102:5: STYLE: unterminated quoted argument
+mandoc: mdoc.in:103:9: STYLE: unterminated quoted argument
+mandoc: mdoc.in:107:5: STYLE: unterminated quoted argument
+mandoc: mdoc.in:107:10: STYLE: whitespace at end of input line
+mandoc: mdoc.in:108:9: STYLE: unterminated quoted argument
+mandoc: mdoc.in:108:14: STYLE: whitespace at end of input line
+mandoc: mdoc.in:112:5: STYLE: unterminated quoted argument
+mandoc: mdoc.in:112:11: STYLE: whitespace at end of input line
+mandoc: mdoc.in:113:9: STYLE: unterminated quoted argument
+mandoc: mdoc.in:113:15: STYLE: whitespace at end of input line
mandoc: mdoc.in:121:1: ERROR: escaped character not allowed in a name: Fl\(