source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Ignore \# lines alongside \".
@ 2011-04-11 21:59 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-04-11 21:59 UTC (permalink / raw)
  To: source

Log Message:
-----------
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.

Modified Files:
--------------
    mdocml:
        read.c

Revision Data
-------------
Index: read.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/read.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -Lread.c -Lread.c -u -p -r1.12 -r1.13
--- read.c
+++ read.c
@@ -354,7 +354,7 @@ mparse_buf_r(struct mparse *curp, struct
 				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) {
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-11 21:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-11 21:59 mdocml: Ignore \# lines alongside \" kristaps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).