From 0f6a3feb69d2b2c3b36b5613f2f4081f516adc13 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 15 Jul 2018 01:34:20 -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 dcdf2c5..dea0f32 100644 --- a/keywords.txt +++ b/keywords.txt @@ -11,22 +11,22 @@ Parallel KEYWORD1 ####################################### # Methods and Functions (KEYWORD2) ####################################### -begin KEYWORD2 -write KEYWORD2 -read KEYWORD2 +begin KEYWORD2 +write KEYWORD2 +read KEYWORD2 setAddressSetupTiming KEYWORD2 -setPulseTiming KEYWORD2 -setCycleTiming KEYWORD2 -setMode KEYWORD2 -getAddress KEYWORD2 +setPulseTiming KEYWORD2 +setCycleTiming KEYWORD2 +setMode KEYWORD2 +getAddress KEYWORD2 ####################################### # Constants (LITERAL1) ####################################### -PARALLEL_CS_0 LITERAL1 -PARALLEL_CS_1 LITERAL1 -PARALLEL_CS_3 LITERAL1 +PARALLEL_CS_0 LITERAL1 +PARALLEL_CS_1 LITERAL1 +PARALLEL_CS_3 LITERAL1 PARALLEL_CS_NONE LITERAL1 READ_MODE_NCS_CTRL LITERAL1