From 03032d6c3e6a2cf8dab62c4d638f607feb99c5b5 Mon Sep 17 00:00:00 2001 From: Cem Aksoylar Date: Wed, 12 Aug 2020 23:12:35 -0700 Subject: [PATCH] Add assignment expression := (walrus) operator --- 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 af189e8e..76cf496a 100644 --- a/rc/filetype/python.kak +++ b/rc/filetype/python.kak @@ -137,7 +137,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:builtin +add-highlighter shared/python/code/ regex (?<=[\w\s\d'"_])((?!]):?=(?![=])|[+*-]=) 0:builtin add-highlighter shared/python/code/ regex ^\h*(?:from|import)\h+(\S+) 1:module # Commands