From 38746b169e030ff4e90b55505f98bbe7a6322803 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Sun, 20 Oct 2019 20:21:08 +0200 Subject: [PATCH] rc python: Highlight modules in import statements --- rc/filetype/python.kak | 1 + 1 file changed, 1 insertion(+) diff --git a/rc/filetype/python.kak b/rc/filetype/python.kak index b88f5343..b6bcc86e 100644 --- a/rc/filetype/python.kak +++ b/rc/filetype/python.kak @@ -136,6 +136,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 ^\h*(?:from|import)\h+(\S+) 1:module # Commands # ‾‾‾‾‾‾‾‾