| 
									
										
										
										
											2014-01-07 06:09:28 +01:00
										 |  |  | " Vim syntax file | 
					
						
							|  |  |  | " Language:    Arduino | 
					
						
							|  |  |  | " Maintainer:  Johannes Hoff <johannes@johanneshoff.com> | 
					
						
							|  |  |  | " Last Change: 2011 June 3 | 
					
						
							|  |  |  | " License:     VIM license (:help license, replace vim by arduino.vim) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Syntax highlighting like in the Arduino IDE | 
					
						
							|  |  |  | " Keywords extracted from <arduino>/build/shared/lib/keywords.txt (arduino | 
					
						
							|  |  |  | " version 0021) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Thanks to Rik, Erik Nomitch, Adam Obeng and Graeme Cross for helpful feedback! | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | " quit when a syntax file was already loaded | 
					
						
							|  |  |  | if exists("b:current_syntax") | 
					
						
							| 
									
										
										
										
											2014-01-07 06:09:28 +01:00
										 |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " Read the C syntax to start with | 
					
						
							| 
									
										
										
										
											2016-08-30 23:26:57 +02:00
										 |  |  | runtime! syntax/cpp.vim | 
					
						
							| 
									
										
										
										
											2014-01-07 06:09:28 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | syn keyword arduinoConstant HIGH LOW INPUT OUTPUT | 
					
						
							|  |  |  | syn keyword arduinoConstant DEC BIN HEX OCT BYTE | 
					
						
							|  |  |  | syn keyword arduinoConstant PI HALF_PI TWO_PI | 
					
						
							|  |  |  | syn keyword arduinoConstant LSBFIRST MSBFIRST  | 
					
						
							|  |  |  | syn keyword arduinoConstant CHANGE FALLING RISING  | 
					
						
							|  |  |  | syn keyword arduinoConstant SERIAL DISPLAY | 
					
						
							|  |  |  | syn keyword arduinoConstant DEFAULT EXTERNAL INTERNAL INTERNAL1V1 INTERNAL2V56 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword arduinoStdFunc abs acos asin atan atan2 ceil constrain | 
					
						
							|  |  |  | syn keyword arduinoStdFunc cos degrees exp floor log | 
					
						
							|  |  |  | syn keyword arduinoStdFunc map max min pow radians  | 
					
						
							|  |  |  | syn keyword arduinoStdFunc round sin sq sqrt tan | 
					
						
							|  |  |  | syn keyword arduinoStdFunc randomSeed random | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword arduinoFunc analogReference analogRead analogWrite  | 
					
						
							|  |  |  | syn keyword arduinoFunc attachInterrupt detachInterrupt interrupts noInterrupts  | 
					
						
							|  |  |  | syn keyword arduinoFunc lowByte highByte bitRead bitWrite bitSet bitClear | 
					
						
							|  |  |  | syn keyword arduinoFunc millis micros delay delayMicroseconds  | 
					
						
							|  |  |  | syn keyword arduinoFunc pinMode digitalWrite digitalRead  | 
					
						
							|  |  |  | syn keyword arduinoFunc tone noTone pulseIn shiftOut  | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword arduinoMethod setup loop | 
					
						
							|  |  |  | syn keyword arduinoMethod begin end available read flush print println write peek | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword arduinoType boolean byte word String  | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword arduinoModule Serial Serial1 Serial2 Serial3 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | hi def link arduinoType Type | 
					
						
							|  |  |  | hi def link arduinoConstant Constant | 
					
						
							|  |  |  | hi def link arduinoStdFunc Function | 
					
						
							|  |  |  | hi def link arduinoFunc Function | 
					
						
							|  |  |  | hi def link arduinoMethod Function | 
					
						
							|  |  |  | hi def link arduinoModule Identifier |