From a612432c8d7eeec35873bb788ead2402c92592b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Ros=C3=A9n?= Date: Sun, 7 Jan 2018 23:35:54 +0100 Subject: [PATCH] Highlight python operators --- rc/core/python.kak | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rc/core/python.kak b/rc/core/python.kak index 1083c8d7..a0f66217 100644 --- a/rc/core/python.kak +++ b/rc/core/python.kak @@ -120,6 +120,9 @@ add-highlighter shared/python/comment fill comment " } +add-highlighter shared/python/code regex (?<=[\w\s\d'"_])(<=|<<|>>|>=|<>|<|>|!=|==|\||\^|&|\+|-|\*\*|\*|//|/|%|~) 0:operator +add-highlighter shared/python/code regex (?<=[\w\s\d'"_])((?!])=(?![=])|[+*-]=) 0:builtin + # Commands # ‾‾‾‾‾‾‾‾