diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2019-10-20 20:21:08 +0200 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2019-10-20 20:21:08 +0200 |
| commit | 38746b169e030ff4e90b55505f98bbe7a6322803 (patch) | |
| tree | 876093257504cbce30d951e475570a85a2b7eace /rc/filetype/python.kak | |
| parent | 3c34de7fe7db607fe2c0519471b8d3c4935ce717 (diff) | |
rc python: Highlight modules in import statements
Diffstat (limited to 'rc/filetype/python.kak')
| -rw-r--r-- | rc/filetype/python.kak | 1 |
1 files changed, 1 insertions, 0 deletions
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 # ‾‾‾‾‾‾‾‾ |
