mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-09 23:04:21 +01:00
Python: quasi-keywords and support for decorators (@annotation -> red)
This commit is contained in:
parent
c0d169a2ce
commit
719446269f
16
python.jsf
16
python.jsf
@ -17,6 +17,7 @@
|
||||
=Brace magenta
|
||||
|
||||
=PrivateMember fg_310 # brown
|
||||
=Decorator red
|
||||
|
||||
:idle Idle
|
||||
* idle
|
||||
@ -26,10 +27,16 @@
|
||||
"\"" string_dq_1 recolor=-1
|
||||
"a-zA-Z_" ident noeat
|
||||
"{}" brace recolor=-1
|
||||
"@" decorator recolor=-1
|
||||
|
||||
:brace Brace
|
||||
* idle noeat
|
||||
|
||||
# annotations
|
||||
:decorator Decorator
|
||||
* decorator
|
||||
" \t\r\n" idle noeat
|
||||
|
||||
:comment Comment
|
||||
* comment
|
||||
# might be TODO label
|
||||
@ -175,11 +182,18 @@
|
||||
"try" kw
|
||||
"while" kw
|
||||
"yield" kw
|
||||
# quasi-keywords
|
||||
"False" lit
|
||||
"None" lit
|
||||
"True" lit
|
||||
done
|
||||
"a-zA-Z0-9_" ident1
|
||||
|
||||
:kw Keyword
|
||||
* idle noeat
|
||||
* idle noeat
|
||||
|
||||
:lit Keyword
|
||||
* idle noeat
|
||||
|
||||
:priv_member PrivateMember
|
||||
* idle noeat
|
||||
|
Loading…
Reference in New Issue
Block a user