From 5220ddf9809cd725ebf4ca569542ff49ece1028d Mon Sep 17 00:00:00 2001 From: Nikolai Kudasov Date: Tue, 23 May 2023 23:18:09 +0300 Subject: [PATCH] Fix Pygments highlighter for lambda abstraction --- rzk/RzkLexer/rzklexer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rzk/RzkLexer/rzklexer/__init__.py b/rzk/RzkLexer/rzklexer/__init__.py index ceafccdd..debf0cad 100644 --- a/rzk/RzkLexer/rzklexer/__init__.py +++ b/rzk/RzkLexer/rzklexer/__init__.py @@ -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),