File: arduino.yaml

package info (click to toggle)
micro 2.0.15-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,128 kB
  • sloc: sh: 265; makefile: 77; xml: 53
file content (101 lines) | stat: -rw-r--r-- 2,830 bytes parent folder | download
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
filetype: ino

detect:
    filename: "\\.ino$"

rules:
    - identifier: "\\b[A-Z_][0-9A-Z_]+\\b"

      ## Sized (u)int types
    - type: "\\b((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\\b"

      ## Constants
    - constant: "(?i)\\b(HIGH|LOW|INPUT|OUTPUT)\\b"

      ## Serial Print
    - constant: "(?i)\\b(DEC|BIN|HEX|OCT|BYTE)\\b"

      ## PI Constants
    - constant: "(?i)\\b(PI|HALF_PI|TWO_PI)\\b"

      ## ShiftOut
    - constant: "(?i)\\b(LSBFIRST|MSBFIRST)\\b"

      ## Attach Interrupt
    - constant: "(?i)\\b(CHANGE|FALLING|RISING)\\b"

      ## Analog Reference
    - constant: "(?i)\\b(DEFAULT|EXTERNAL|INTERNAL|INTERNAL1V1|INTERNAL2V56)\\b"

      ## === FUNCTIONS === ##

      ## Data Types
    - type: "\\b(boolean|byte|char|float|int|long|word)\\b"

      ## Control Structions
    - statement: "\\b(case|class|default|do|double|else|false|for|if|new|null|private|protected|public|short|signed|static|String|switch|this|throw|try|true|unsigned|void|while)\\b"
    - statement: "\\b(goto|continue|break|return)\\b"

      ## Math
    - identifier: "\\b(abs|acos|asin|atan|atan2|ceil|constrain|cos|degrees|exp|floor|log|map|max|min|radians|random|randomSeed|round|sin|sq|sqrt|tan)\\b"

      ## Bits & Bytes
    - identifier: "\\b(bitRead|bitWrite|bitSet|bitClear|bit|highByte|lowByte)\\b"

      ## Analog I/O
    - identifier: "\\b(analogReference|analogRead|analogWrite)\\b"

      ## External Interrupts
    - identifier: "\\b(attachInterrupt|detachInterrupt)\\b"

      ## Time
    - identifier: "\\b(delay|delayMicroseconds|millis|micros)\\b"

      ## Digital I/O
    - identifier: "\\b(pinMode|digitalWrite|digitalRead)\\b"

      ## Interrupts
    - identifier: "\\b(interrupts|noInterrupts)\\b"

      ## Advanced I/O
    - identifier: "\\b(noTone|pulseIn|shiftIn|shiftOut|tone)\\b"

      ## Serial
    - identifier: "\\b(Serial|Serial1|Serial2|Serial3|begin|end|peek|read|print|println|available|flush)\\b"

      ## Structure
    - identifier: "\\b(setup|loop)\\b"

      ##
    - statement: "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)"

      ## GCC builtins
    - constant: "(__attribute__[[:space:]]*\\(\\([^)]*\\)\\)|__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__)"

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

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

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

    - comment:
        start: "/\\*"
        end: "\\*/"
        rules:
            - todo: "(TODO|XXX|FIXME):?"