From f36cf353da45dae8fb2cb2e5f4cf2a6a37bb49c6 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 15 Jul 2018 04:19:24 -0700 Subject: [PATCH] Use a single tab field separator in keywords.txt Each field of keywords.txt is separated by a single true tab. When you use multiple tabs it causes the field to be interpreted as empty. On Arduino IDE 1.6.5 and newer an empty KEYWORD_TOKENTYPE causes the default editor.function.style coloration to be used (as with KEYWORD2, KEYWORD3, LITERAL2). On Arduino IDE 1.6.4 and older it causes the keyword to not be recognized for any special coloration. Reference: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywords --- keywords.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/keywords.txt b/keywords.txt index ecb3e92..f72fa4a 100644 --- a/keywords.txt +++ b/keywords.txt @@ -12,19 +12,19 @@ ledMatrix KEYWORD1 # Methods and Functions (KEYWORD2) ####################################### -writeReg KEYWORD2 -dot KEYWORD2 -load KEYWORD2 -flush KEYWORD2 +writeReg KEYWORD2 +dot KEYWORD2 +load KEYWORD2 +flush KEYWORD2 setBrightness KEYWORD2 ####################################### # Constants (LITERAL1) ####################################### -MAX7219_REG_NOOP LITERAL1 -MAX7219_REG_DECODEMODE LITERAL1 -MAX7219_REG_INTENSITY LITERAL1 -MAX7219_REG_SCANLIMIT LITERAL1 -MAX7219_REG_SHUTDOWN LITERAL1 -MAX7219_REG_DISPLAYTEST LITERAL1 +MAX7219_REG_NOOP LITERAL1 +MAX7219_REG_DECODEMODE LITERAL1 +MAX7219_REG_INTENSITY LITERAL1 +MAX7219_REG_SCANLIMIT LITERAL1 +MAX7219_REG_SHUTDOWN LITERAL1 +MAX7219_REG_DISPLAYTEST LITERAL1