Python: the highlighter believed that the `@' binary operator is a decorator, fix this

This commit is contained in:
Wictor Lund 2019-10-02 12:47:29 +03:00
parent afbd3aa118
commit 2693dd1fe8
1 changed files with 5 additions and 1 deletions

View File

@ -27,12 +27,16 @@
"\"" string_dq_1 recolor=-1 "\"" string_dq_1 recolor=-1
"a-zA-Z_" ident noeat "a-zA-Z_" ident noeat
"{}" brace recolor=-1 "{}" brace recolor=-1
"@" decorator recolor=-1 "@" maybe_decorator
:brace Brace :brace Brace
* idle noeat * idle noeat
# annotations # annotations
:maybe_decorator Idle
"a-zA-Z_" decorator recolor=-2
" (\t\r\n" idle noeat
:decorator Decorator :decorator Decorator
* decorator * decorator
" (\t\r\n" idle noeat " (\t\r\n" idle noeat