X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=syntax_files%2Farduino.micro;h=b8a80b00b8f02d043964380012d9ef3991207453;hb=7e9d119b2dcabae0f6dee1e51001bc8374e675cc;hp=d3ffdd886e2d994d7e2ecab12bcd46327013b887;hpb=8257e94ab1a331ea25724ddf07d2ae836f4ce35d;p=micro.git diff --git a/syntax_files/arduino.micro b/syntax_files/arduino.micro index d3ffdd88..b8a80b00 100644 --- a/syntax_files/arduino.micro +++ b/syntax_files/arduino.micro @@ -35,22 +35,22 @@ color brightred "\b[A-Z_][0-9A-Z_]+\b" color green "\b((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\b" ## Constants -icolor green "\b(HIGH|LOW|INPUT|OUTPUT)\b" +color green (i) "\b(HIGH|LOW|INPUT|OUTPUT)\b" ## Serial Print -icolor red "\b(DEC|BIN|HEX|OCT|BYTE)\b" +color red (i) "\b(DEC|BIN|HEX|OCT|BYTE)\b" ## PI Constants -icolor green "\b(PI|HALF_PI|TWO_PI)\b" +color green (i) "\b(PI|HALF_PI|TWO_PI)\b" ## ShiftOut -icolor green "\b(LSBFIRST|MSBFIRST)\b" +color green (i) "\b(LSBFIRST|MSBFIRST)\b" ## Attach Interrupt -icolor green "\b(CHANGE|FALLING|RISING)\b" +color green (i) "\b(CHANGE|FALLING|RISING)\b" ## Analog Reference -icolor green "\b(DEFAULT|EXTERNAL|INTERNAL|INTERNAL1V1|INTERNAL2V56)\b" +color green (i) "\b(DEFAULT|EXTERNAL|INTERNAL|INTERNAL1V1|INTERNAL2V56)\b" ## === FUNCTIONS === ## @@ -100,17 +100,17 @@ color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\ ## GCC builtins color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" -## String highlighting. You will in general want your comments and +## String highlighting. You will in general want your brightblacks and ## strings to come last, because syntax highlighting rules will be ## applied in the order they are read in. color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" ## This string is VERY resource intensive! -color brightyellow "(?s)"(\\.|[^"])*\\[[:space:]]*$.*?^(\\.|[^"])*"" +color brightyellow (s) ""(\\.|[^"])*\\[[:space:]]*$.*?^(\\.|[^"])*"" ## Comments color brightblue "//.*" -color brightblue "(?s)/\*.*?\*/" +color brightblue (s) "/\*.*?\*/" ## Trailing whitespace color ,green "[[:space:]]+$"