diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-11 21:59:39 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-11 21:59:39 +0000 |
commit | 7bff54024c8bf017f935803979a972b47ed3a9e1 (patch) | |
tree | 782555db7e27820d671c5b4ee313c6153ef6d857 | |
parent | 3fe40c8a568e41d791219c17b6e5342043c3f749 (diff) | |
download | mandoc-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.
-rw-r--r-- | read.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |