summaryrefslogtreecommitdiff
path: root/pygments/lexers/asm.py
diff options
context:
space:
mode:
authorSander Mathijs van Veen <smvv@kompiler.org>2016-12-04 15:48:00 +0100
committerSander Mathijs van Veen <smvv@kompiler.org>2016-12-04 15:48:00 +0100
commit0a30c0a8c579e9a6294376c833eeb39867c20bcd (patch)
treecd8aae5d28a1848b82695d7bfb3f1158de267482 /pygments/lexers/asm.py
parent56e75b33d66738b072f9f5525f3af4a8ba863d8b (diff)
downloadpygments-0a30c0a8c579e9a6294376c833eeb39867c20bcd.tar.gz
Support gas semicolon comments besides hash comments
Diffstat (limited to 'pygments/lexers/asm.py')
-rw-r--r--pygments/lexers/asm.py6
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)