Skip to content

Commit cbd656c

Browse files
committed
Fix Pygments highlighter for params
1 parent 5220ddf commit cbd656c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rzk/RzkLexer/rzklexer/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ def get_tokens_unprocessed(self, text):
2424
(r'#lang|#set-option|#unset-option|#check|#compute-whnf|#compute-nf|#compute', Name.Decorator),
2525
(r'(#section|#end)(\s+[^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^\t\n\r !"#\(\),\.;:<>\?\[\\\]\{\|\}]*)',
2626
bygroups(Name.Decorator, Name.Entity)),
27-
(r'(\(\s+)([^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^!"#\(\),\.;:<>\?\[\\\]\{\|\}]*)(:)',
28-
bygroups(Punctuation, Name.Variable, Punctuation)),
29-
(r'(\\\s*)((([^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^\t\n\r !"#\(\),\.;:<>\?\[\\\]\{\|\}]*)\s*)*)',
27+
(r'(\(\s*)((([^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^\t\n\r !"#\(\),\.;:<>\?\[\\\]\{\|\}]*)\s*)+)(:)',
28+
bygroups(Punctuation, Name.Variable, None, None, Punctuation)),
29+
(r'(\\\s*)((([^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^\t\n\r !"#\(\),\.;:<>\?\[\\\]\{\|\}]*)\s*)+)',
3030
bygroups(Punctuation, Name.Variable)),
3131
(r';|:|:=|\(|\)|_|,|\{|\||\}|\|\[|\]|<|>|\\|->', Punctuation),
3232
(r' = | \* | === | <= | /\\ | \\/ ', Operator),

0 commit comments

Comments
 (0)