aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff/esc/comment.in
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-05-01 16:22:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-05-01 16:22:06 +0000
commitfc560c515dc97bd36329ee99e655bd3e30c705da (patch)
tree9b4867f531f1d576b379113305aa84f97715244d /regress/roff/esc/comment.in
parentb592e2d9ee8dd845f058dac8ae07a679a4bd10e2 (diff)
downloadmandoc-fc560c515dc97bd36329ee99e655bd3e30c705da.tar.gz
mandoc-fc560c515dc97bd36329ee99e655bd3e30c705da.tar.zst
mandoc-fc560c515dc97bd36329ee99e655bd3e30c705da.zip
Split a new function roff_parse_comment() out of roff_expand() because this
functionality is not needed when called from roff_getarg(). This makes the long and complicated function roff_expand() significantly shorter, and also simpler in so far as it no longer needs to return ROFF_APPEND. No functional change intended.
Diffstat (limited to 'regress/roff/esc/comment.in')
-rw-r--r--regress/roff/esc/comment.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/regress/roff/esc/comment.in b/regress/roff/esc/comment.in
new file mode 100644
index 00000000..692cbf00
--- /dev/null
+++ b/regress/roff/esc/comment.in
@@ -0,0 +1,25 @@
+.\" $OpenBSD: comment.in,v 1.1 2022/05/01 16:18:59 schwarze Exp $
+.Dd $Mdocdate: May 1 2022 $
+.Dt ROFF-ESC-COMMENT 1
+.Os
+.Sh NAME
+.Nm roff-esc-comment
+.Nd roff(7) comments
+.Sh DESCRIPTION
+text line cont\
+inuation
+.Pp
+macro line continuation:
+.Op Fl f A\
+r file
+.Pp
+whitespace \&
+at the end of an input line
+.Pp
+text line with \"not printed\
+comment
+.Pp
+continuation \#not printed
+requested by a comment
+.Pp
+Surpisingly, the sequence \\" does not start a comment.