Skip to content

Commit

Permalink
Remove leading space from keywords.txt identifier
Browse files Browse the repository at this point in the history
Each field of keywords.txt is separated by a single true tab. Leading spaces on a keyword identifier causes it to not be recognized by the Arduino IDE. On Arduino IDE 1.6.5 and newer an unrecognized keyword identifier causes the default editor.function.style highlighting to be used (as with KEYWORD2, KEYWORD3).

Reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywords
  • Loading branch information
per1234 authored Jul 17, 2018
1 parent 0f686b3 commit c95c152
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions keywords.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
SBUS KEYWORD1
SBUS KEYWORD1

begin KEYWORD2
process KEYWORD2
getChannel KEYWORD2
getNormalizedChannel KEYWORD2
getFailsafeStatus KEYWORD2
getFrameLoss KEYWORD2
getGoodFrames KEYWORD2
getLostFrames KEYWORD2
getDecoderErrorFrames KEYWORD2
begin KEYWORD2
process KEYWORD2
getChannel KEYWORD2
getNormalizedChannel KEYWORD2
getFailsafeStatus KEYWORD2
getFrameLoss KEYWORD2
getGoodFrames KEYWORD2
getLostFrames KEYWORD2
getDecoderErrorFrames KEYWORD2

SBUS_FAILSAFE_INACTIVE LITERAL1
SBUS_FAILSAFE_ACTIVE LITERAL1
SBUS_FAILSAFE_INACTIVE LITERAL1
SBUS_FAILSAFE_ACTIVE LITERAL1

0 comments on commit c95c152

Please sign in to comment.