diff options
-rw-r--r-- | pygments/lexers/asm.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/asm.py b/pygments/lexers/asm.py index 2bb3eac9..2f5c1b79 100644 --- a/pygments/lexers/asm.py +++ b/pygments/lexers/asm.py @@ -54,7 +54,7 @@ class GasLexer(RegexLexer): (number, Number.Integer), (r'[\r\n]+', Text, '#pop'), - (r'#.*?$', Comment, '#pop'), + (r'[;#].*?$', Comment, '#pop'), include('punctuation'), include('whitespace') @@ -78,14 +78,14 @@ class GasLexer(RegexLexer): ('$'+number, Number.Integer), (r"$'(.|\\')'", String.Char), (r'[\r\n]+', Text, '#pop'), - (r'#.*?$', Comment, '#pop'), + (r'[;#].*?$', Comment, '#pop'), include('punctuation'), include('whitespace') ], 'whitespace': [ (r'\n', Text), (r'\s+', Text), - (r'#.*?\n', Comment) + (r'[;#].*?\n', Comment) ], 'punctuation': [ (r'[-*,.()\[\]!:]+', Punctuation) |