File: cython.yaml

package info (click to toggle)
micro 2.0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,828 kB
  • sloc: sh: 247; makefile: 77; xml: 53
file content (52 lines) | stat: -rw-r--r-- 1,323 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
filetype: cython

detect:
    filename: "\\.pyx$|\\.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)\\b"
    - special: "\\b(continue|break|return)\\b"

      # Cython Keyword Color
    - identifier.macro: "\\b(cdef|cimport|cpdef|cppclass|ctypedef|extern|include|namespace|property|struct)\\b"
    - type: "\\b(bint|char|double|int|public|void|unsigned)\\b"

      # Operator Color
    - symbol: "[.:;,+*|=!\\%]|<|>|/|-|&"

      # Parenthetical Color
    - symbol.brackets: "[(){}]|\\[|\\]"

    - constant.string:
        start: "\"\"\""
        end: "\"\"\""
        rules:
            - constant.specialChar: "\\\\."

    - constant.string:
        start: "'''"
        end: "'''"
        rules:
            - constant.specialChar: "\\\\."

    - constant.string:
        start: "\""
        end: "\""
        skip: "\\\\."
        rules:
            - constant.specialChar: "\\\\."

    - constant.string:
        start: "'"
        end: "'"
        skip: "\\\\."
        rules:
            - constant.specialChar: "\\\\."

    - comment:
        start: "#"
        end: "$"
        rules:
            - todo: "(TODO|XXX|FIXME):?"