summaryrefslogtreecommitdiffstats
path: root/mdoc.7
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-16 19:13:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-16 19:13:28 +0000
commitbf5cc7adff53d67064937f93d51005e425746df8 (patch)
tree2a31290923a4aca3c8628070f8a9f0598b851be2 /mdoc.7
parent4c30e6f109f12c3f061caa13660a9a30fc807db2 (diff)
downloadmandoc-bf5cc7adff53d67064937f93d51005e425746df8.tar.gz
Modernised comment handling: text following \" is thrown away before
either parser is invoked. Single-dot lines correctly handled. This confirms with both new- and old-groff. "Comment" subsection added to mdoc.7 and man.7.
Diffstat (limited to 'mdoc.7')
-rw-r--r--mdoc.712
1 files changed, 11 insertions, 1 deletions
diff --git a/mdoc.7 b/mdoc.7
index 69cb6071..621c6f28 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -78,9 +78,19 @@ or
.Sq \&.Bd \-unfilled
contexts.
.\" SUB-SECTION
+.Ss Comments
+Anything following a
+.Sq \e"
+delimiter is considered a comment (unless the
+.Sq \e
+itself has been escaped) and is ignored to the end of line.
+Furthermore, a macro line with only a control character
+.Sq \. ,
+optionally followed by whitespace, is ignored.
+.\" SUB-SECTION
.Ss Reserved Characters
Within a macro line, the following characters are reserved:
-.Bl -tag -width 12n -offset XXXX -compact
+.Bl -tag -width Ds -offset XXXX -compact
.It \&.
.Pq period
.It \&,