From 7bff54024c8bf017f935803979a972b47ed3a9e1 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 11 Apr 2011 21:59:39 +0000 Subject: 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. --- read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'read.c') 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 * Copyright (c) 2010, 2011 Ingo Schwarze @@ -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) { -- cgit v1.2.3-56-ge451