" Vim syntax file " Language: Arduino " Maintainer: Johannes Hoff " Last Change: 2010 May 12 " Syntax highlighting like in the Arduino IDE " Keywords extracted from /build/shared/lib/keywords.txt " Thanks to Rik and Erik Nomitch for helpful feedback! " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded if version < 600 syntax clear elseif exists("b:current_syntax") finish endif " Read the C syntax to start with if version < 600 so :p:h/cpp.vim else runtime! syntax/cpp.vim endif 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 INTERAL syn keyword arduinoStdFunc abs acos asin atan atan2 ceil constrain syn keyword arduinoStdFunc cos degrees exp floor log syn keyword arduinoStdFunc map max min 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 syn keyword arduinoModule Serial 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