1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-30 23:37:17 +03:00

rc python: Highlight modules in import statements

This commit is contained in:
Frank LENORMAND 2019-10-20 20:21:08 +02:00
parent 3c34de7fe7
commit 38746b169e

View File

@ -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
# ‾‾‾‾‾‾‾‾