mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
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>
This commit is contained in:
parent
2998226fa1
commit
dd47d57e4d
@ -237,7 +237,7 @@ sub get_para($_) {
|
||||
$para = undef;
|
||||
}
|
||||
if (/\S/) {
|
||||
s/\\#.*$//; # strip comments
|
||||
s/(^|[^\\])\\#.*$/\1/; # strip comments
|
||||
$para .= " " . $_;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user