Skip to content

Commit

Permalink
Use correct field separator in keywords.txt
Browse files Browse the repository at this point in the history
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
  • Loading branch information
per1234 authored Aug 3, 2018
1 parent 64fc369 commit be722c1
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,37 @@
# Library (KEYWORD3)
#######################################

M5Stack KEYWORD3
M5 KEYWORD3
m5 KEYWORD3
M5Stack KEYWORD3
M5 KEYWORD3
m5 KEYWORD3

#######################################
# Datatypes (KEYWORD1)
#######################################

Lcd KEYWORD1
Speaker KEYWORD1
BtnA KEYWORD1
BtnB KEYWORD1
BtnC KEYWORD1
Lcd KEYWORD1
Speaker KEYWORD1
BtnA KEYWORD1
BtnB KEYWORD1
BtnC KEYWORD1

#######################################
# Methods and Functions (KEYWORD2)
#######################################

begin KEYWORD2
update KEYWORD2
begin KEYWORD2
update KEYWORD2

pressed KEYWORD2
released KEYWORD2
held KEYWORD2
repeat KEYWORD2
pressed KEYWORD2
released KEYWORD2
held KEYWORD2
repeat KEYWORD2
timeHeld KEYWORD2

getBuffer KEYWORD2
setContrast KEYWORD2
clear KEYWORD2
update KEYWORD2
clear KEYWORD2
update KEYWORD2
fillScreen KEYWORD2
persistence KEYWORD2
setColor KEYWORD2
Expand Down Expand Up @@ -66,10 +66,10 @@ fontWidth KEYWORD2
fontHeight KEYWORD2
setFont KEYWORD2

WHITE LITERAL1
BLACK LITERAL1
INVERT LITERAL1
GRAY LITERAL1
RED LITERAL1
BLUE LITERAL1
GREEN LITERAL1
WHITE LITERAL1
BLACK LITERAL1
INVERT LITERAL1
GRAY LITERAL1
RED LITERAL1
BLUE LITERAL1
GREEN LITERAL1

0 comments on commit be722c1

Please sign in to comment.