1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-22 08:35:39 +01:00
nanorc/cython.nanorc

31 lines
984 B
Plaintext
Raw Normal View History

2011-02-03 03:19:36 +01:00
## Cython nanorc, based off of Python nanorc.
##
2011-02-03 08:19:27 +01:00
syntax "cython" "\.pyx$" "\.pxd$" "\.pyi$"
2011-02-03 07:50:07 +01:00
icolor brightred "def [ 0-9A-Z_]+"
2011-02-07 21:51:21 +01:00
icolor brightred "cpdef [ 0-9A-Z_]+\(.*?\):"
icolor brightred "cdef cppclass [ 0-9A-Z_]+\(.*?\):"
2011-02-03 03:19:36 +01:00
# Python Keyword Color
color green "\<(and|as|assert|class|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|print|raise|try|while|with|yield)\>"
2011-02-03 03:19:36 +01:00
color brightmagenta "\<(continue|break|return)\>"
# Cython Keyword Color
2011-02-10 21:39:30 +01:00
color green "\<(cdef|cimport|cpdef|cppclass|ctypedef|extern|include|namespace|property|struct)\>"
2011-02-11 18:36:00 +01:00
color red "\<(bint|char|double|int|public|void)\>"
2011-02-03 03:19:36 +01:00
#Operator Color
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
#Parenthetical Color
color magenta "[(){}]" "\[" "\]"
#String Color
color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''"
2011-02-10 21:39:30 +01:00
# Comment Color
2011-02-03 03:19:36 +01:00
color brightblue "#.*$"