Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

fix missed syntax highlighting #183

Merged
merged 1 commit into from
Mar 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions syntaxes/arduino.tmLanguage
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!--
language grammars reference document: https://manual.macromates.com/en/language_grammars
Arduino Language reference document: https://www.arduino.cc/en/Reference/HomePage
-->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Expand All @@ -23,19 +24,19 @@ language grammars reference document: https://manual.macromates.com/en/language_
<array>
<dict>
<key>match</key>
<string>\b(HIGH|LOW|INPUT|OUTPUT|DEC|BIN|HEX|OCT|BYTE|PI|HALF_PI|TWO_PI|LSBFIRST|MSBFIRST|CHANGE|FALLING|RISING|DEFAULT|EXTERNAL|INTERNAL|INTERNAL1V1|INTERNAL2V56|null)\b</string>
<string>\b(HIGH|LOW|INPUT|OUTPUT|INPUT_PULLUP|LED_BUILTIN|DEC|BIN|HEX|OCT|BYTE|PI|HALF_PI|TWO_PI|LSBFIRST|MSBFIRST|CHANGE|FALLING|RISING|DEFAULT|EXTERNAL|INTERNAL|INTERNAL1V1|INTERNAL2V56|null)\b</string>
<key>name</key>
<string>storage.type.cpp.arduino</string>
</dict>
<dict>
<key>match</key>
<string>\b(boolean|byte|word)\b</string>
<string>\b(boolean|byte|word|string|String|array)\b</string>
<key>name</key>
<string>storage.cpp.arduino</string>
</dict>
<dict>
<key>match</key>
<string>\b(abs|acos|asin|atan|atan2|ceil|constrain|cos|degrees|exp|floor|log|map|max|min|radians|random|randomSeed|round|sin|sq|sqrt|tan|bitRead|bitWrite|bitSet|bitClear|bit|highByte|lowByte|analogReference|analogRead|analogWrite|attachInterrupt|detachInterrupt|delay|delayMicroseconds|digitalWrite|digitalRead|interrupts|millis|micros|noInterrupts|noTone|pinMode|pulseIn|shiftOut|tone|begin|end|read|print|println|available|flush)\b</string>
<string>\b(abs|acos|asin|atan|atan2|ceil|constrain|cos|degrees|exp|floor|log|map|max|min|radians|random|randomSeed|round|sin|sq|sqrt|tan|bitRead|bitWrite|bitSet|bitClear|bit|highByte|lowByte|analogReference|analogRead|analogWrite|analogReadResolution|analogWriteResolution|attachInterrupt|detachInterrupt|delay|delayMicroseconds|digitalWrite|digitalRead|interrupts|millis|micros|noInterrupts|noTone|pinMode|pulseIn|shiftIn|shiftOut|tone|begin|end|read|print|println|available|flush)\b</string>
<key>name</key>
<string>support.function.cpp.arduino</string>
</dict>
Expand All @@ -47,7 +48,7 @@ language grammars reference document: https://manual.macromates.com/en/language_
</dict>
<dict>
<key>match</key>
<string>\b(Serial\d?)\b</string>
<string>\b(Serial\d?|Stream|Keyboard|Mouse)\b</string>
<key>name</key>
<string>support.class.cpp.arduino</string>
</dict>
Expand Down