We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cae371 commit 6d4dbd5Copy full SHA for 6d4dbd5
1 file changed
conf.py
@@ -467,7 +467,8 @@ class MapFileLexer(RegexLexer):
467
(r'\s+', Text),
468
(r'\[.*?\]', Name.Other),
469
(r'[{}\[\]();,-.]+', Punctuation),
470
- (r'#.*', Comment),
+ (r'#.*', Comment.Single),
471
+ (r'/\*', Comment.Multiline, 'comment'),
472
(r'(AND|OR|NOT|EQ|GT|LT|GE|LE|NE|IN|IEQ)\b', Operator.Word),
473
(r'!=|==|<=|>=|=~|&&|\|\||[-~+/*%=<>&^|./\$]', Operator),
474
('(?:[rR]|[uU][rR]|[rR][uU])"', String, 'dqs'),
@@ -484,6 +485,12 @@ class MapFileLexer(RegexLexer):
484
485
(r'[0-9]+', Number.Integer)
486
487
],
488
+ 'comment': [
489
+ (r'[^*/]+', Comment.Multiline),
490
+ (r'/\*', Comment.Multiline, '#push'),
491
+ (r'\*/', Comment.Multiline, '#pop'),
492
+ (r'[*/]', Comment.Multiline),
493
+ ],
494
'dqs': [
495
(r'"', String, '#pop'),
496
(r'\\\\|\\"|\\\n', String.Escape), # included here again for raw strings
0 commit comments