mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04: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;
|
$para = undef;
|
||||||
}
|
}
|
||||||
if (/\S/) {
|
if (/\S/) {
|
||||||
s/\\#.*$//; # strip comments
|
s/(^|[^\\])\\#.*$/\1/; # strip comments
|
||||||
$para .= " " . $_;
|
$para .= " " . $_;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user