annotate runtime/syntax/arduino.vim @ 30643:dfb02f9dcbe8 v9.0.0656

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