Skip to content

Commit

Permalink
Add keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
asukiaaa committed Nov 23, 2016
1 parent 53122fb commit 6ceff30
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ If you want to use code for multiple platform including any board that does not
- [HardwareSerial.h](https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/HardwareSerial.h)
- [SoftwareSerial.h](https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/libraries/SoftwareSerial/src/SoftwareSerial.h)
- [USBAPI.h](https://github.com/arduino/Arduino/blob/2bfe164b9a5835e8cb6e194b928538a9093be333/hardware/arduino/avr/cores/arduino/USBAPI.h)
- [SoftwareSeiral/keywords.txt](https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/libraries/SoftwareSerial/keywords.txt)
33 changes: 33 additions & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#######################################
# Syntax Coloring Map for SomeSerial
#######################################

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

SomeSerial KEYWORD1

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

begin KEYWORD2
end KEYWORD2
read KEYWORD2
write KEYWORD2
available KEYWORD2
flush KEYWORD2
peek KEYWORD2
isSoftwareSerial KEYWORD2
isHardwareSerial KEYWORD2
isSerial_ KEYWORD2
thisSoftwareSerial KEYWORD2
thisHardwareSerial KEYWORD2
thisSerial_ KEYWORD2

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

__USB_SERIAL_AVAILABLE__ LITERAL1

0 comments on commit 6ceff30

Please sign in to comment.