1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-13 20:54:15 +01:00
nanorc/cython.nanorc
Elliot Saba e2769e7661 Compatibility fixes for OSX. Closes scoptaz/nanorc#13
* cython.nanorc: Remove non-greedy repetition operator, as it is not supported on OSX
 * fish.nanorc: Remove incompatible "magic" hint
 * pkgbuild.nanorc: Remove empty sub-expressions
2013-07-22 21:24:55 -07:00

31 lines
1007 B
Plaintext

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