Python: quasi-keywords and support for decorators (@annotation -> red)

This commit is contained in:
Christian Nicolai 2011-09-03 16:46:25 +02:00
parent c0d169a2ce
commit 719446269f
1 changed files with 15 additions and 1 deletions

View File

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