diff options
author | H. Peter Anvin <hpa@zytor.com> | 2017-08-16 21:13:23 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2017-08-16 21:13:23 -0700 |
commit | dd47d57e4da6f5ab12e75d81b34f735be5f3cc68 (patch) | |
tree | b09fb9b5f0f6c50430037fa2161f03d0089ea3c9 | |
parent | 2998226fa1ed612e38c15e45bd17ec5b16e5d447 (diff) | |
download | nasm-dd47d57e4da6f5ab12e75d81b34f735be5f3cc68.tar.gz |
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>
-rw-r--r-- | doc/rdsrc.pl | 2 |
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 .= " " . $_; } } |