comparison runtime/syntax/arduino.vim @ 26050:ebedba7a4898

Update runtime files Commit: https://github.com/vim/vim/commit/079ba76ae7a7d0ef404cb9b41dff2663ff41f51b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 23 12:08:41 2021 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sat, 23 Oct 2021 13:15:06 +0200
parents 43efa4f5a8ea
children babd9f1dbe12
comparison
equal deleted inserted replaced
26049:1663e536d900 26050:ebedba7a4898
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Arduino 2 " Language: Arduino
3 " Maintainer: Johannes Hoff <johannes@johanneshoff.com> 3 " Maintainer: Johannes Hoff <johannes@johanneshoff.com>
4 " Last Change: 2011 June 3 4 " Last Change: 21 October 2021
5 " License: VIM license (:help license, replace vim by arduino.vim) 5 " License: VIM license (:help license, replace vim by arduino.vim)
6 6
7 " Syntax highlighting like in the Arduino IDE 7 " Syntax highlighting like in the Arduino IDE
8 " Keywords extracted from <arduino>/build/shared/lib/keywords.txt (arduino 8 " Automatically generated by the script available at
9 " version 0021) 9 " https://bitbucket.org/johannes/arduino-vim-syntax
10 " Using keywords from <arduino>/build/shared/lib/keywords.txt
11 " From version: 1.8.16
10 12
11 " Thanks to Rik, Erik Nomitch, Adam Obeng and Graeme Cross for helpful feedback! 13 " Thanks to Rik, Erik Nomitch, Adam Obeng, Graeme Cross and Niall Parker
14 " for helpful feedback!
12 15
13 " quit when a syntax file was already loaded 16 " For version 5.x: Clear all syntax items
14 if exists("b:current_syntax") 17 " For version 6.x: Quit when a syntax file was already loaded
18 if version < 600
19 syntax clear
20 elseif exists("b:current_syntax")
15 finish 21 finish
16 endif 22 endif
17 23
18 " Read the C syntax to start with 24 " Read the C syntax to start with
19 runtime! syntax/cpp.vim 25 if version < 600
26 so <sfile>:p:h/cpp.vim
27 else
28 runtime! syntax/cpp.vim
29 endif
20 30
21 syn keyword arduinoConstant HIGH LOW INPUT OUTPUT 31 syn keyword arduinoConstant BIN CHANGE DEC DEFAULT EXTERNAL FALLING HALF_PI HEX
22 syn keyword arduinoConstant DEC BIN HEX OCT BYTE 32 syn keyword arduinoConstant HIGH INPUT INPUT_PULLUP INTERNAL INTERNAL1V1
23 syn keyword arduinoConstant PI HALF_PI TWO_PI 33 syn keyword arduinoConstant INTERNAL2V56 LED_BUILTIN LED_BUILTIN_RX
24 syn keyword arduinoConstant LSBFIRST MSBFIRST 34 syn keyword arduinoConstant LED_BUILTIN_TX LOW LSBFIRST MSBFIRST OCT OUTPUT PI
25 syn keyword arduinoConstant CHANGE FALLING RISING 35 syn keyword arduinoConstant RISING TWO_PI
26 syn keyword arduinoConstant SERIAL DISPLAY
27 syn keyword arduinoConstant DEFAULT EXTERNAL INTERNAL INTERNAL1V1 INTERNAL2V56
28 36
29 syn keyword arduinoStdFunc abs acos asin atan atan2 ceil constrain 37 syn keyword arduinoFunc analogRead analogReadResolution analogReference
30 syn keyword arduinoStdFunc cos degrees exp floor log 38 syn keyword arduinoFunc analogWrite analogWriteResolution attachInterrupt
31 syn keyword arduinoStdFunc map max min pow radians 39 syn keyword arduinoFunc bit bitClear bitRead bitSet bitWrite delay
32 syn keyword arduinoStdFunc round sin sq sqrt tan 40 syn keyword arduinoFunc delayMicroseconds detachInterrupt
33 syn keyword arduinoStdFunc randomSeed random 41 syn keyword arduinoFunc digitalPinToInterrupt digitalRead digitalWrite
42 syn keyword arduinoFunc highByte interrupts lowByte micros millis
43 syn keyword arduinoFunc noInterrupts noTone pinMode pulseIn pulseInLong
44 syn keyword arduinoFunc shiftIn shiftOut tone yield
34 45
35 syn keyword arduinoFunc analogReference analogRead analogWrite 46 syn keyword arduinoMethod available availableForWrite begin charAt compareTo
36 syn keyword arduinoFunc attachInterrupt detachInterrupt interrupts noInterrupts 47 syn keyword arduinoMethod concat end endsWith equals equalsIgnoreCase export
37 syn keyword arduinoFunc lowByte highByte bitRead bitWrite bitSet bitClear 48 syn keyword arduinoMethod final find findUntil flush getBytes indexOf
38 syn keyword arduinoFunc millis micros delay delayMicroseconds 49 syn keyword arduinoMethod lastIndexOf length loop override parseFloat
39 syn keyword arduinoFunc pinMode digitalWrite digitalRead 50 syn keyword arduinoMethod parseInt peek print println read readBytes
40 syn keyword arduinoFunc tone noTone pulseIn shiftOut 51 syn keyword arduinoMethod readBytesUntil readString readStringUntil replace
52 syn keyword arduinoMethod setCharAt setTimeout setup startsWith Stream
53 syn keyword arduinoMethod substring toCharArray toInt toLowerCase toUpperCase
54 syn keyword arduinoMethod trim
41 55
42 syn keyword arduinoMethod setup loop 56 syn keyword arduinoModule Keyboard Mouse Serial Serial1 Serial2 Serial3
43 syn keyword arduinoMethod begin end available read flush print println write peek 57 syn keyword arduinoModule SerialUSB
44 58
45 syn keyword arduinoType boolean byte word String 59 syn keyword arduinoStdFunc abs accept acos acosf asin asinf atan atan2 atan2f
60 syn keyword arduinoStdFunc atanf cbrt cbrtf ceil ceilf click constrain
61 syn keyword arduinoStdFunc copysign copysignf cos cosf cosh coshf degrees exp
62 syn keyword arduinoStdFunc expf fabs fabsf fdim fdimf floor floorf fma fmaf
63 syn keyword arduinoStdFunc fmax fmaxf fmin fminf fmod fmodf hypot hypotf
64 syn keyword arduinoStdFunc isfinite isinf isnan isPressed ldexp ldexpf log
65 syn keyword arduinoStdFunc log10 log10f logf lrint lrintf lround lroundf map
66 syn keyword arduinoStdFunc max min move pow powf press radians random
67 syn keyword arduinoStdFunc randomSeed release releaseAll round roundf signbit
68 syn keyword arduinoStdFunc sin sinf sinh sinhf sq sqrt sqrtf tan tanf tanh
69 syn keyword arduinoStdFunc tanhf trunc truncf
46 70
47 syn keyword arduinoModule Serial Serial1 Serial2 Serial3 71 syn keyword arduinoType _Bool _Complex _Imaginary array atomic_bool
72 syn keyword arduinoType atomic_char atomic_int atomic_llong atomic_long
73 syn keyword arduinoType atomic_schar atomic_short atomic_uchar atomic_uint
74 syn keyword arduinoType atomic_ullong atomic_ulong atomic_ushort boolean
75 syn keyword arduinoType byte char16_t char32_t complex NULL null PROGMEM
76 syn keyword arduinoType String word
48 77
49 hi def link arduinoType Type 78 hi def link arduinoType Type
50 hi def link arduinoConstant Constant 79 hi def link arduinoConstant Constant
51 hi def link arduinoStdFunc Function 80 hi def link arduinoStdFunc Function
52 hi def link arduinoFunc Function 81 hi def link arduinoFunc Function