fzf added to the bashrc
[dotfiles/.git] / .nano / cython.nanorc
1 ## Cython nanorc, based off of Python nanorc.
2 ##
3 syntax "Cython" "\.pyx$" "\.pxd$" "\.pyi$"
4 icolor brightred "def [ 0-9A-Z_]+"
5 icolor brightred "cpdef [0-9A-Z_]+\(.*\):"
6 icolor brightred "cdef cppclass [ 0-9A-Z_]+\(.*\):"
7
8
9
10 # Python Keyword Color
11 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)\>"
12 color brightmagenta "\<(continue|break|return)\>"
13
14 # Cython Keyword Color
15 color green "\<(cdef|cimport|cpdef|cppclass|ctypedef|extern|include|namespace|property|struct)\>"
16 color red "\<(bint|char|double|int|public|void|unsigned)\>"
17
18 #Operator Color
19 color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
20
21 #Parenthetical Color
22 color magenta "[(){}]" "\[" "\]"
23
24 #String Color
25 color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
26 color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
27 color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''"
28
29 # Comment Color
30 color brightblue "#.*$"
31
32 ## Trailing spaces
33 color ,green "[[:space:]]+$"