Skip to content

Commit 8a2ea30

Browse files
committed
Strip out lines starting with '#' even if they have leading spaces
1 parent 23b139e commit 8a2ea30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gas-preprocessor.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ ()
269269
# the line indicates a comment for all supported archs (aarch64, arm, ppc
270270
# and x86). Also strips line number comments but since they are off anyway
271271
# it is no loss.
272-
s/^#.*$//;
272+
s/^\s*#.*$//;
273273
# remove all comments (to avoid interfering with evaluating directives)
274274
s/(?<!\\)$inputcomm.*//x;
275275
# Strip out windows linefeeds

0 commit comments

Comments
 (0)