Files
zyedidia.micro/runtime/syntax/cython.micro
CaptainMcClellan c29e58e3d4 Syntax Highlight Overhaul (#568)
* Adds new syntax groups and docs
* Large refactor of syntax highlighting files

* Changed keybindings for changing tabs.

* Improved the documentation.

* Added F3 for find to default bindings.

* Massive overhaul of the syntax files

* Phase 1 color-scheme updates.

* The new colorschemes.

* Colorscheme and syntax updates.

* Tiny fix to the cmc theme.

* Another phase of colorschemes and testing gitconfig.

* Fixed haskell error

* Fortran fix

* Delete test.txt

Heh, sorry about forgetting to do this again.
2017-03-01 09:30:35 -05:00

31 lines
1.0 KiB
Plaintext

## Cython nanorc, based off of Python nanorc.
##
syntax "cython" "\.pyx$" "\.pxd$" "\.pyi$"
color preproc "def [ 0-9A-Z_]+"
color preproc "cpdef [0-9A-Z_]+\(.*\):"
color preproc "cdef cppclass [ 0-9A-Z_]+\(.*\):"
# Python Keyword Color
color statement "\<(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 special "\<(continue|break|return)\>"
# Cython Keyword Color
color identifier.macro "\<(cdef|cimport|cpdef|cppclass|ctypedef|extern|include|namespace|property|struct)\>"
color type "\<(bint|char|double|int|public|void|unsigned)\>"
#Operator Color
color symbol "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
#Parenthetical Color
color symbol.brackets "[(){}]" "\[" "\]"
#String Color
color constant.string "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
color constant.string "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
color constant.string start=""""[^"]" end=""""" start="'''[^']" end="'''"
# Comment Color
color comment "#.*$"