From 988b92d948ed8db0c62cff286618a4e7c2e67f2c Mon Sep 17 00:00:00 2001 From: cipharius Date: Sun, 27 Oct 2019 15:49:04 +0200 Subject: [PATCH] Fix python operator highlighter --- rc/filetype/python.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/python.kak b/rc/filetype/python.kak index 0fb370fc..5a5da6f6 100644 --- a/rc/filetype/python.kak +++ b/rc/filetype/python.kak @@ -134,7 +134,7 @@ evaluate-commands %sh{ " } -add-highlighter shared/python/code/ regex (?<=[\w\s\d'"_])(<=|<<|>>|>=|<>|<|>|!=|==|\||\^|&|\+|-|\*\*|\*|//|/|%|~) 0:operator +add-highlighter shared/python/code/ regex (?<=[\w\s\d\)\]'"_])(<=|<<|>>|>=|<>|<|>|!=|==|\||\^|&|\+|-|\*\*|\*|//?|%|~) 0:operator add-highlighter shared/python/code/ regex (?<=[\w\s\d'"_])((?!])=(?![=])|[+*-]=) 0:builtin add-highlighter shared/python/code/ regex ^\h*(?:from|import)\h+(\S+) 1:module