diff options
author | Georg Brandl <georg@python.org> | 2017-01-17 08:13:45 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2017-01-17 08:13:45 +0100 |
commit | 77f7301c3d36c47e0ef06a26ba2a039e110a2ee8 (patch) | |
tree | 72fd5d1f00751ff74f14f61039a837bcaa20696e | |
parent | 845e50936b71fee31fe336d1ad050c4b57869ce9 (diff) | |
download | pygments-77f7301c3d36c47e0ef06a26ba2a039e110a2ee8.tar.gz |
Gas lexer: whitespace already includes comments.
-rw-r--r-- | pygments/lexers/asm.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pygments/lexers/asm.py b/pygments/lexers/asm.py index 2f5c1b79..4c58e54b 100644 --- a/pygments/lexers/asm.py +++ b/pygments/lexers/asm.py @@ -54,8 +54,6 @@ class GasLexer(RegexLexer): (number, Number.Integer), (r'[\r\n]+', Text, '#pop'), - (r'[;#].*?$', Comment, '#pop'), - include('punctuation'), include('whitespace') ], @@ -78,7 +76,7 @@ class GasLexer(RegexLexer): ('$'+number, Number.Integer), (r"$'(.|\\')'", String.Char), (r'[\r\n]+', Text, '#pop'), - (r'[;#].*?$', Comment, '#pop'), + include('punctuation'), include('whitespace') ], |