Skip to content

Commit

Permalink
Use correct separator in keywords.txt
Browse files Browse the repository at this point in the history
The Arduino IDE requires the use of a tab separator between the name and identifier. Without this tab the keyword is not highlighted.

Reference: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywords
  • Loading branch information
per1234 committed Sep 3, 2017
1 parent 7a778df commit f2affb2
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,61 +6,61 @@
# Datatypes (KEYWORD1)
#######################################

NVRAM KEYWORD1
EEPROM KEYWORD1
VirtualPage KEYWORD1
Flash KEYWORD1
NVRAM KEYWORD1
EEPROM KEYWORD1
VirtualPage KEYWORD1
Flash KEYWORD1

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

# Flash/VirtualPage/EEPROM
length KEYWORD2
page_count KEYWORD2
length KEYWORD2
page_count KEYWORD2

# Flash/NVRAM/EEPROM
write KEYWORD2
write_block KEYWORD2
clean_up KEYWORD2
write KEYWORD2
write_block KEYWORD2
clean_up KEYWORD2

# Flash
size KEYWORD2
page_size KEYWORD2
page_size_bits KEYWORD2
page_count KEYWORD2
specified_erase_cycles KEYWORD2
page_address KEYWORD2
erase KEYWORD2
erase_all KEYWORD2
size KEYWORD2
page_size KEYWORD2
page_size_bits KEYWORD2
page_count KEYWORD2
specified_erase_cycles KEYWORD2
page_address KEYWORD2
erase KEYWORD2
erase_all KEYWORD2

# VirtualPage
wear_level KEYWORD2
get KEYWORD2
allocate KEYWORD2
release_prepare KEYWORD2
release KEYWORD2
release_started KEYWORD2
fail KEYWORD2
format KEYWORD2
wear_level KEYWORD2
get KEYWORD2
allocate KEYWORD2
release_prepare KEYWORD2
release KEYWORD2
release_started KEYWORD2
fail KEYWORD2
format KEYWORD2

# NVRAM
read_block KEYWORD2
read KEYWORD2
write_prepare KEYWORD2
read_block KEYWORD2
read KEYWORD2
write_prepare KEYWORD2

# EEPROM
read KEYWORD2
update KEYWORD2
read KEYWORD2
update KEYWORD2

#######################################
# Constants (LITERAL1)
#######################################

# Flash.h
FLASH_ERASE_CYCLES LITERAL1
FLASH_PAGE_SIZE LITERAL1
FLASH_ERASE_PAGE_TIME LITERAL1
FLASH_SUPPORTS_RANDOM_WRITE LITERAL1
FLASH_WRITES_PER_WORD LITERAL1
FLASH_WRITES_PER_PAGE LITERAL1
FLASH_ERASE_CYCLES LITERAL1
FLASH_PAGE_SIZE LITERAL1
FLASH_ERASE_PAGE_TIME LITERAL1
FLASH_SUPPORTS_RANDOM_WRITE LITERAL1
FLASH_WRITES_PER_WORD LITERAL1
FLASH_WRITES_PER_PAGE LITERAL1

0 comments on commit f2affb2

Please sign in to comment.