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).
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
Incorrect use of whitespace in keywords.txt is a very common problem and so it would be reasonable for Arduino to make the keywords.txt format more flexible. Some effort was made: https://github.com/arduino/Arduino/pull/7245 in that direction but it seems to have stalled out so I'm not holding my breath. Personally, I don't find it so onerous to just comply with the specification.
I set my editor to show tabs and spaces and installed a [browser extension that shows them on GitHub pages](https://github.com/glebm/render-whitespace-on-github). Now that they're not invisible to me anymore I find it much easier to deal with.
Incorrect use of whitespace in keywords.txt is a very common problem and so it would be reasonable for Arduino to make the keywords.txt format more flexible. Some effort was made: https://github.com/arduino/Arduino/pull/7245 in that direction but it seems to have stalled out so I'm not holding my breath. Personally, I don't find it so onerous to just comply with the specification.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
Thank you. It would be so much simpler if Arduino fixed this upstream as we are dealing with invisible characters here.
I set my editor to show tabs and spaces and installed a browser extension that shows them on GitHub pages. Now that they're not invisible to me anymore I find it much easier to deal with.
Incorrect use of whitespace in keywords.txt is a very common problem and so it would be reasonable for Arduino to make the keywords.txt format more flexible. Some effort was made: https://github.com/arduino/Arduino/pull/7245 in that direction but it seems to have stalled out so I'm not holding my breath. Personally, I don't find it so onerous to just comply with the specification.