codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Arduino3" Maintainer: Johannes Hoff <johannes@johanneshoff.com>4" Last Change: 21 October 20215" License: VIM license (:help license, replace vim by arduino.vim)6 7" Syntax highlighting like in the Arduino IDE8" Automatically generated by the script available at9" https://github.com/johshoff/arduino-vim-syntax10" Using keywords from <arduino>/build/shared/lib/keywords.txt11" From version: 1.8.1612 13" Thanks to Rik, Erik Nomitch, Adam Obeng, Graeme Cross and Niall Parker14" for helpful feedback!15 16" For version 5.x: Clear all syntax items17" For version 6.x: Quit when a syntax file was already loaded18if version < 60019 syntax clear20elseif exists("b:current_syntax")21 finish22endif23 24" Read the C syntax to start with25if version < 60026 so <sfile>:p:h/cpp.vim27else28 runtime! syntax/cpp.vim29endif30 31syn keyword arduinoConstant BIN CHANGE DEC DEFAULT EXTERNAL FALLING HALF_PI HEX32syn keyword arduinoConstant HIGH INPUT INPUT_PULLUP INTERNAL INTERNAL1V133syn keyword arduinoConstant INTERNAL2V56 LED_BUILTIN LED_BUILTIN_RX34syn keyword arduinoConstant LED_BUILTIN_TX LOW LSBFIRST MSBFIRST OCT OUTPUT PI35syn keyword arduinoConstant RISING TWO_PI36 37syn keyword arduinoFunc analogRead analogReadResolution analogReference38syn keyword arduinoFunc analogWrite analogWriteResolution attachInterrupt39syn keyword arduinoFunc bit bitClear bitRead bitSet bitWrite delay40syn keyword arduinoFunc delayMicroseconds detachInterrupt41syn keyword arduinoFunc digitalPinToInterrupt digitalRead digitalWrite42syn keyword arduinoFunc highByte interrupts lowByte micros millis43syn keyword arduinoFunc noInterrupts noTone pinMode pulseIn pulseInLong44syn keyword arduinoFunc shiftIn shiftOut tone yield45 46syn keyword arduinoMethod available availableForWrite begin charAt compareTo47syn keyword arduinoMethod concat end endsWith equals equalsIgnoreCase export48syn keyword arduinoMethod final find findUntil flush getBytes indexOf49syn keyword arduinoMethod lastIndexOf length loop override parseFloat50syn keyword arduinoMethod parseInt peek print println read readBytes51syn keyword arduinoMethod readBytesUntil readString readStringUntil replace52syn keyword arduinoMethod setCharAt setTimeout setup startsWith Stream53syn keyword arduinoMethod substring toCharArray toInt toLowerCase toUpperCase54syn keyword arduinoMethod trim55 56syn keyword arduinoModule Keyboard Mouse Serial Serial1 Serial2 Serial357syn keyword arduinoModule SerialUSB58 59syn keyword arduinoStdFunc abs accept acos acosf asin asinf atan atan2 atan2f60syn keyword arduinoStdFunc atanf cbrt cbrtf ceil ceilf click constrain61syn keyword arduinoStdFunc copysign copysignf cos cosf cosh coshf degrees exp62syn keyword arduinoStdFunc expf fabs fabsf fdim fdimf floor floorf fma fmaf63syn keyword arduinoStdFunc fmax fmaxf fmin fminf fmod fmodf hypot hypotf64syn keyword arduinoStdFunc isfinite isinf isnan isPressed ldexp ldexpf log65syn keyword arduinoStdFunc log10 log10f logf lrint lrintf lround lroundf map66syn keyword arduinoStdFunc max min move pow powf press radians random67syn keyword arduinoStdFunc randomSeed release releaseAll round roundf signbit68syn keyword arduinoStdFunc sin sinf sinh sinhf sq sqrt sqrtf tan tanf tanh69syn keyword arduinoStdFunc tanhf trunc truncf70 71syn keyword arduinoType _Bool _Complex _Imaginary array atomic_bool72syn keyword arduinoType atomic_char atomic_int atomic_llong atomic_long73syn keyword arduinoType atomic_schar atomic_short atomic_uchar atomic_uint74syn keyword arduinoType atomic_ullong atomic_ulong atomic_ushort boolean75syn keyword arduinoType byte char16_t char32_t complex NULL null PROGMEM76syn keyword arduinoType String word77 78hi def link arduinoType Type79hi def link arduinoConstant Constant80hi def link arduinoStdFunc Function81hi def link arduinoFunc Function82hi def link arduinoMethod Function83hi def link arduinoModule Identifier84 