Skip to content

Commit 6d4dbd5

Browse files
committed
update OGC services [build_translations]
1 parent 8cae371 commit 6d4dbd5

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ class MapFileLexer(RegexLexer):
467467
(r'\s+', Text),
468468
(r'\[.*?\]', Name.Other),
469469
(r'[{}\[\]();,-.]+', Punctuation),
470-
(r'#.*', Comment),
470+
(r'#.*', Comment.Single),
471+
(r'/\*', Comment.Multiline, 'comment'),
471472
(r'(AND|OR|NOT|EQ|GT|LT|GE|LE|NE|IN|IEQ)\b', Operator.Word),
472473
(r'!=|==|<=|>=|=~|&&|\|\||[-~+/*%=<>&^|./\$]', Operator),
473474
('(?:[rR]|[uU][rR]|[rR][uU])"', String, 'dqs'),
@@ -484,6 +485,12 @@ class MapFileLexer(RegexLexer):
484485
(r'[0-9]+', Number.Integer)
485486

486487
],
488+
'comment': [
489+
(r'[^*/]+', Comment.Multiline),
490+
(r'/\*', Comment.Multiline, '#push'),
491+
(r'\*/', Comment.Multiline, '#pop'),
492+
(r'[*/]', Comment.Multiline),
493+
],
487494
'dqs': [
488495
(r'"', String, '#pop'),
489496
(r'\\\\|\\"|\\\n', String.Escape), # included here again for raw strings

0 commit comments

Comments
 (0)