Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problems with keywords.txt #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

per1234
Copy link

@per1234 per1234 commented Jul 16, 2018

  • Use correct field separator.
  • Use correct and valid KEYWORD_TOKENTYPEs.

Reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywords

per1234 added 2 commits July 15, 2018 20:12
The Arduino IDE requires the use of a single true tab separator between the keyword name and identifier. When spaces are used rather than a true tab the keyword is not highlighted.

Reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywords
Use of an invalid KEYWORD_TOKENTYPE value in keywords.txt causes the keyword to be highlighted by the default editor.function.style theme setting (as used by KEYWORD2, KEYWORD3, LITERAL2) in Arduino IDE 1.6.5 and newer. On Arduino IDE 1.6.4 and older, the undocumented KEYWORD4 causes the keyword to use the theme sytle for operators, KEYWORD5 causes the keyword to use the theme style for hyperlinks, KEYWORD6 uses editor.invalid.style, KEYWORD7-9 causes the IDE to glitch out.

Reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keyword_tokentype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant