Skip to content

Commit

Permalink
Fix Pygments highlighter for params
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed May 23, 2023
1 parent 5220ddf commit cbd656c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rzk/RzkLexer/rzklexer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def get_tokens_unprocessed(self, text):
(r'#lang|#set-option|#unset-option|#check|#compute-whnf|#compute-nf|#compute', Name.Decorator),
(r'(#section|#end)(\s+[^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^\t\n\r !"#\(\),\.;:<>\?\[\\\]\{\|\}]*)',
bygroups(Name.Decorator, Name.Entity)),
(r'(\(\s+)([^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^!"#\(\),\.;:<>\?\[\\\]\{\|\}]*)(:)',
bygroups(Punctuation, Name.Variable, Punctuation)),
(r'(\\\s*)((([^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^\t\n\r !"#\(\),\.;:<>\?\[\\\]\{\|\}]*)\s*)*)',
(r'(\(\s*)((([^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^\t\n\r !"#\(\),\.;:<>\?\[\\\]\{\|\}]*)\s*)+)(:)',
bygroups(Punctuation, Name.Variable, None, None, Punctuation)),
(r'(\\\s*)((([^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^\t\n\r !"#\(\),\.;:<>\?\[\\\]\{\|\}]*)\s*)+)',
bygroups(Punctuation, Name.Variable)),
(r';|:|:=|\(|\)|_|,|\{|\||\}|\|\[|\]|<|>|\\|->', Punctuation),
(r' = | \* | === | <= | /\\ | \\/ ', Operator),
Expand Down

0 comments on commit cbd656c

Please sign in to comment.