Skip to content

Commit

Permalink
Fix Pygments highlighter for lambda abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed May 23, 2023
1 parent 142ec00 commit 5220ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rzk/RzkLexer/rzklexer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_tokens_unprocessed(self, text):
bygroups(Name.Decorator, Name.Entity)),
(r'(\(\s+)([^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^!"#\(\),\.;:<>\?\[\\\]\{\|\}]*)(:)',
bygroups(Punctuation, Name.Variable, Punctuation)),
(r'(\\)(([^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^\t\n\r !"#\(\),\.;:<>\?\[\\\]\{\|\}]*)\s*)*',
(r'(\\\s*)((([^\t\n\r !"#\(\),-\.;:<>\?\[\\\]\{\|\}][^\t\n\r !"#\(\),\.;:<>\?\[\\\]\{\|\}]*)\s*)*)',
bygroups(Punctuation, Name.Variable)),
(r';|:|:=|\(|\)|_|,|\{|\||\}|\|\[|\]|<|>|\\|->', Punctuation),
(r' = | \* | === | <= | /\\ | \\/ ', Operator),
Expand Down

0 comments on commit 5220ddf

Please sign in to comment.