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