aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-04-11 21:59:39 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-04-11 21:59:39 +0000
commit7bff54024c8bf017f935803979a972b47ed3a9e1 (patch)
tree782555db7e27820d671c5b4ee313c6153ef6d857 /read.c
parent3fe40c8a568e41d791219c17b6e5342043c3f749 (diff)
downloadmandoc-7bff54024c8bf017f935803979a972b47ed3a9e1.tar.gz
mandoc-7bff54024c8bf017f935803979a972b47ed3a9e1.tar.zst
mandoc-7bff54024c8bf017f935803979a972b47ed3a9e1.zip
Ignore \# lines alongside \". From groff(7):
\# Everything up to and including the next newline is ignored. This is interpreted in copy mode. This is like \" except that the terminating newline is ignored as well.
Diffstat (limited to 'read.c')
-rw-r--r--read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/read.c b/read.c
index e5b532dc..9b0ec825 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.12 2011/04/09 15:29:40 kristaps Exp $ */
+/* $Id: read.c,v 1.13 2011/04/11 21:59:39 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -354,7 +354,7 @@ mparse_buf_r(struct mparse *curp, struct buf blk, int start)
continue;
}
- if ('"' == blk.buf[i + 1]) {
+ if ('"' == blk.buf[i + 1] || '#' == blk.buf[i + 1]) {
i += 2;
/* Comment, skip to end of line */
for (; i < (int)blk.sz; ++i) {