mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +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
|
=Brace magenta
|
||||||
|
|
||||||
=PrivateMember fg_310 # brown
|
=PrivateMember fg_310 # brown
|
||||||
|
=Decorator red
|
||||||
|
|
||||||
:idle Idle
|
:idle Idle
|
||||||
* idle
|
* idle
|
||||||
@ -26,10 +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
|
||||||
|
|
||||||
:brace Brace
|
:brace Brace
|
||||||
* idle noeat
|
* idle noeat
|
||||||
|
|
||||||
|
# annotations
|
||||||
|
:decorator Decorator
|
||||||
|
* decorator
|
||||||
|
" \t\r\n" idle noeat
|
||||||
|
|
||||||
:comment Comment
|
:comment Comment
|
||||||
* comment
|
* comment
|
||||||
# might be TODO label
|
# might be TODO label
|
||||||
@ -175,11 +182,18 @@
|
|||||||
"try" kw
|
"try" kw
|
||||||
"while" kw
|
"while" kw
|
||||||
"yield" kw
|
"yield" kw
|
||||||
|
# quasi-keywords
|
||||||
|
"False" lit
|
||||||
|
"None" lit
|
||||||
|
"True" lit
|
||||||
done
|
done
|
||||||
"a-zA-Z0-9_" ident1
|
"a-zA-Z0-9_" ident1
|
||||||
|
|
||||||
:kw Keyword
|
:kw Keyword
|
||||||
* idle noeat
|
* idle noeat
|
||||||
|
|
||||||
|
:lit Keyword
|
||||||
|
* idle noeat
|
||||||
|
|
||||||
:priv_member PrivateMember
|
:priv_member PrivateMember
|
||||||
* idle noeat
|
* idle noeat
|
||||||
|
Loading…
Reference in New Issue
Block a user