summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2017-01-17 08:13:45 +0100
committerGeorg Brandl <georg@python.org>2017-01-17 08:13:45 +0100
commit77f7301c3d36c47e0ef06a26ba2a039e110a2ee8 (patch)
tree72fd5d1f00751ff74f14f61039a837bcaa20696e
parent845e50936b71fee31fe336d1ad050c4b57869ce9 (diff)
downloadpygments-77f7301c3d36c47e0ef06a26ba2a039e110a2ee8.tar.gz
Gas lexer: whitespace already includes comments.
-rw-r--r--pygments/lexers/asm.py4
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')
],