mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +01:00
Some more cython improvements.
This commit is contained in:
parent
436525c343
commit
2944360474
|
@ -1,7 +1,9 @@
|
||||||
## Cython nanorc, based off of Python nanorc.
|
## Cython nanorc, based off of Python nanorc.
|
||||||
##
|
##
|
||||||
syntax "python" "\.pyx$" "\.pyd$" "\.pyi$"
|
syntax "cython" "\.pyx$" "\.pyd$" "\.pyi$"
|
||||||
icolor brightred "def [ 0-9A-Z_]+"
|
icolor brightred "def [ 0-9A-Z_]+"
|
||||||
|
icolor brightred "cpdef [ 0-9A-Z_]+"
|
||||||
|
icolor brightred "cdef cppclass [ 0-9A-Z_]+"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,8 +12,8 @@ color green "\<(and|as|assert|class|def|del|elif|else|except|exec|finally|for|fr
|
||||||
color brightmagenta "\<(continue|break|return)\>"
|
color brightmagenta "\<(continue|break|return)\>"
|
||||||
|
|
||||||
# Cython Keyword Color
|
# Cython Keyword Color
|
||||||
color green "\<(cdef|extern|namespace)\>"
|
color green "\<(cdef|cpdef|cppclass|extern|namespace)\>"
|
||||||
color red "\<(bint|double|int)\>"
|
color red "\<(bint|char|double|int|public)\>"
|
||||||
|
|
||||||
#Operator Color
|
#Operator Color
|
||||||
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
|
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user