From d100d7193575f0742b9959463d06125dd168d8d6 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 9 Sep 2018 04:34:23 -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 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 | 56 ++++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/keywords.txt b/keywords.txt index 00c987c..3d34cfc 100644 --- a/keywords.txt +++ b/keywords.txt @@ -4,32 +4,32 @@ # Functions -- KEYWORD2 # --------------------- -modoPino KEYWORD2 -escrevaDigital KEYWORD2 -escrevaAnalogico KEYWORD2 -leiaDigital KEYWORD2 -leiaAnalogico KEYWORD2 -declare KEYWORD2 -espera KEYWORD2 -tom KEYWORD2 -semTom KEYWORD2 -limites KEYWORD2 -mapeie KEYWORD2 +modoPino KEYWORD2 +escrevaDigital KEYWORD2 +escrevaAnalogico KEYWORD2 +leiaDigital KEYWORD2 +leiaAnalogico KEYWORD2 +declare KEYWORD2 +espera KEYWORD2 +tom KEYWORD2 +semTom KEYWORD2 +limites KEYWORD2 +mapeie KEYWORD2 # Methods -- KEYWORD2 # --------------------- -comecar KEYWORD2 -comeca KEYWORD2 -imprime KEYWORD2 -imprimir KEYWORD2 -imprimeln KEYWORD2 -imprimirlln KEYWORD2 -disponivel KEYWORD2 -ler KEYWORD2 -le KEYWORD2 -leCaractere KEYWORD2 -escrever KEYWORD2 -escreve KEYWORD2 +comecar KEYWORD2 +comeca KEYWORD2 +imprime KEYWORD2 +imprimir KEYWORD2 +imprimeln KEYWORD2 +imprimirlln KEYWORD2 +disponivel KEYWORD2 +ler KEYWORD2 +le KEYWORD2 +leCaractere KEYWORD2 +escrever KEYWORD2 +escreve KEYWORD2 # Datatypes -- RESERVED_WORD # --------------------- @@ -102,11 +102,11 @@ ArduinoLangES DATA_TYPE # see this post https://forum.arduino.cc/index.php?topic=488243.0 # the purpose of this file is to allow the keyword coloration of all keywords to be easily checked -keywordKEYWORD1 KEYWORD1 -keywordKEYWORD2 KEYWORD2 -keywordKEYWORD3 KEYWORD3 -keywordLITERAL1 LITERAL1 -keywordLITERAL2 LITERAL2 +keywordKEYWORD1 KEYWORD1 +keywordKEYWORD2 KEYWORD2 +keywordKEYWORD3 KEYWORD3 +keywordLITERAL1 LITERAL1 +keywordLITERAL2 LITERAL2 # 3 tabs are required between the keyword and the keyword identifier for these keyword types. This allows for other keyword identifiers or text to be included between which doesn't appear to have any effect, maybe for backwards compatibility? keywordRESERVED_WORD RESERVED_WORD