From dc529d2220115b5bb164393c0c859be4d146f828 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 9 Sep 2018 00:56:55 -0700 Subject: [PATCH 1/2] Correct invalid keywords.txt KEYWORD_TOKENTYPE Use of an invalid KEYWORD_TOKENTYPE value in keywords.txt causes the keyword to be colored by the default editor.function.style (as used by KEYWORD2, KEYWORD3, LITERAL2) in Arduino IDE 1.6.5 and newer. On Arduino IDE 1.6.4 and older this will cause the keyword to not be recognized for any special coloration. Reference: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keyword_tokentype --- keywords.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keywords.txt b/keywords.txt index e51e4c7..fd173c0 100755 --- a/keywords.txt +++ b/keywords.txt @@ -42,7 +42,7 @@ getNbGw KEYWORD2 wakeup KEYWORD2 sleep KEYWORD2 wakeup KEYWORD2 -reset KEYWORK2 +reset KEYWORD2 start KEYWORD2 int0D2 KEYWORD2 int1D3 KEYWORD2 @@ -98,7 +98,7 @@ EnableInt1 KEYWORD2 SetUTC KEYWORD2 TASK KEYWORD2 -PORT KEWWORD2 +PORT KEYWORD2 ######################################## # Constants (LITERAL1) ######################################## From f75ffade2e508060a7cd89325631bccab77ca82e Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 9 Sep 2018 00:58:02 -0700 Subject: [PATCH 2/2] 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 highlighting to be used (as with KEYWORD2, KEYWORD3). On Arduino IDE 1.6.4 and older it causes the keyword to not be recognized for any special highlighting. Reference: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywords --- keywords.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/keywords.txt b/keywords.txt index fd173c0..b83f261 100755 --- a/keywords.txt +++ b/keywords.txt @@ -5,8 +5,8 @@ ######################################## # Datatypes (KEYWORD1) ######################################## - -ADB922S KEYWORD1 + +ADB922S KEYWORD1 KGPS KEYWORD1 TASK_LIST KEYWORD1 @@ -102,14 +102,14 @@ PORT KEYWORD2 ######################################## # Constants (LITERAL1) ######################################## -BPS_9600 LITERAL1 -BPS_19200 LITERAL1 -BPS_57600 LITERAL1 -BPS_115200 LITERAL1 -DR2 LITERAL1 -DR3 LITERAL1 -DR4 LITERAL1 -DR5 LITERAL1 +BPS_9600 LITERAL1 +BPS_19200 LITERAL1 +BPS_57600 LITERAL1 +BPS_115200 LITERAL1 +DR2 LITERAL1 +DR3 LITERAL1 +DR4 LITERAL1 +DR5 LITERAL1 -KashiwaGeeks LITERAL1 +KashiwaGeeks LITERAL1