aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-08-16 21:13:23 -0700
committerH. Peter Anvin <hpa@zytor.com>2017-08-16 21:13:23 -0700
commitdd47d57e4da6f5ab12e75d81b34f735be5f3cc68 (patch)
treeb09fb9b5f0f6c50430037fa2161f03d0089ea3c9 /doc
parent2998226fa1ed612e38c15e45bd17ec5b16e5d447 (diff)
downloadnasm-dd47d57e4da6f5ab12e75d81b34f735be5f3cc68.tar.gz
nasm-dd47d57e4da6f5ab12e75d81b34f735be5f3cc68.tar.xz
nasm-dd47d57e4da6f5ab12e75d81b34f735be5f3cc68.zip
doc/rdsrc: don't treat \# as a comment marker if preceeded by \
We need to be able to let \\# represent a literal \#, rather than be \ followed by a comment. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/rdsrc.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/rdsrc.pl b/doc/rdsrc.pl
index 129bb085..1ca71681 100644
--- a/doc/rdsrc.pl
+++ b/doc/rdsrc.pl
@@ -237,7 +237,7 @@ sub get_para($_) {
$para = undef;
}
if (/\S/) {
- s/\\#.*$//; # strip comments
+ s/(^|[^\\])\\#.*$/\1/; # strip comments
$para .= " " . $_;
}
}