summaryrefslogtreecommitdiff
path: root/pygments/lexers/asm.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/asm.py')
-rw-r--r--pygments/lexers/asm.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/pygments/lexers/asm.py b/pygments/lexers/asm.py
index 32ac9361..72a68a57 100644
--- a/pygments/lexers/asm.py
+++ b/pygments/lexers/asm.py
@@ -55,7 +55,9 @@ class GasLexer(RegexLexer):
(number, Number.Integer),
(register, Name.Variable),
(r'[\r\n]+', Text, '#pop'),
- (r'[;#].*?\n', Comment, '#pop'),
+ (r'([;#]|//).*?\n', Comment.Single, '#pop'),
+ (r'/[*].*?[*]/', Comment.Multiline),
+ (r'/[*].*?\n[\w\W]*?[*]/', Comment.Multiline, '#pop'),
include('punctuation'),
include('whitespace')
@@ -79,7 +81,9 @@ class GasLexer(RegexLexer):
('$'+number, Number.Integer),
(r"$'(.|\\')'", String.Char),
(r'[\r\n]+', Text, '#pop'),
- (r'[;#].*?\n', Comment, '#pop'),
+ (r'([;#]|//).*?\n', Comment.Single, '#pop'),
+ (r'/[*].*?[*]/', Comment.Multiline),
+ (r'/[*].*?\n[\w\W]*?[*]/', Comment.Multiline, '#pop'),
include('punctuation'),
include('whitespace')
@@ -87,7 +91,8 @@ class GasLexer(RegexLexer):
'whitespace': [
(r'\n', Text),
(r'\s+', Text),
- (r'[;#].*?\n', Comment)
+ (r'([;#]|//).*?\n', Comment.Single),
+ (r'/[*][\w\W]*?[*]/', Comment.Multiline)
],
'punctuation': [
(r'[-*,.()\[\]!:]+', Punctuation)