summaryrefslogtreecommitdiffstats
path: root/mdoc.c
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.c
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.c')
-rw-r--r--mdoc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mdoc.c b/mdoc.c
index 895bc44f..cb3f7ff7 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -657,7 +657,7 @@ parsemacro(struct mdoc *m, int ln, char *buf)
int i, c;
char mac[5];
- /* Comments and empties are quickly ignored. */
+ /* Empty lines are ignored. */
if (0 == buf[1])
return(1);
@@ -671,10 +671,6 @@ parsemacro(struct mdoc *m, int ln, char *buf)
return(perr(m, ln, 1, ESPACE));
}
- if (buf[1] && '\\' == buf[1])
- if (buf[2] && '\"' == buf[2])
- return(1);
-
/* Copy the first word into a nil-terminated buffer. */
for (i = 1; i < 5; i++) {