annotate runtime/syntax/nqc.vim @ 26007:1d2e1c23e458 v8.2.3537

patch 8.2.3537: mode() does not return the right value in 'operatorfunc' Commit: https://github.com/vim/vim/commit/75c30e96cf280a8cc01ac01c41a9252db3e503cc Author: naohiro ono <obcat@icloud.com> Date: Tue Oct 19 11:15:41 2021 +0100 patch 8.2.3537: mode() does not return the right value in 'operatorfunc' Problem: mode() does not return the right value in 'operatorfunc'. Solution: Reset finish_op while calling 'operatorfunc'.
author Bram Moolenaar <Bram@vim.org>
date Tue, 19 Oct 2021 12:30:05 +0200
parents 46763b01cd9a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: NQC - Not Quite C, for LEGO mindstorms
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " NQC homepage: http://www.enteract.com/~dbaum/nqc/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Maintainer: Stefan Scherer <stefan@enotes.de>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2001 May 10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " URL: http://www.enotes.de/twiki/pub/Home/LegoMindstorms/nqc.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Filenames: .nqc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
9 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
10 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Statements
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn keyword nqcStatement break return continue start stop abs sign
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword nqcStatement sub task
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn keyword nqcLabel case default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword nqcConditional if else switch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword nqcRepeat while for do until repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " Scout and RCX2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword nqcEvents acquire catch monitor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " types and classes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword nqcType int true false void
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword nqcStorageClass asm const inline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Sensors --------------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Input Sensors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword nqcConstant SENSOR_1 SENSOR_2 SENSOR_3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Types for SetSensorType()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword nqcConstant SENSOR_TYPE_TOUCH SENSOR_TYPE_TEMPERATURE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword nqcConstant SENSOR_TYPE_LIGHT SENSOR_TYPE_ROTATION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword nqcConstant SENSOR_LIGHT SENSOR_TOUCH
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " Modes for SetSensorMode()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword nqcConstant SENSOR_MODE_RAW SENSOR_MODE_BOOL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword nqcConstant SENSOR_MODE_EDGE SENSOR_MODE_PULSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword nqcConstant SENSOR_MODE_PERCENT SENSOR_MODE_CELSIUS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword nqcConstant SENSOR_MODE_FAHRENHEIT SENSOR_MODE_ROTATION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " Sensor configurations for SetSensor()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword nqcConstant SENSOR_TOUCH SENSOR_LIGHT SENSOR_ROTATION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword nqcConstant SENSOR_CELSIUS SENSOR_FAHRENHEIT SENSOR_PULSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword nqcConstant SENSOR_EDGE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " Functions - All
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword nqcFunction ClearSensor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword nqcFunction SensorValue SensorType
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " Functions - RCX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword nqcFunction SetSensor SetSensorType
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword nqcFunction SensorValueBool
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " Functions - RCX, CyberMaster
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword nqcFunction SetSensorMode SensorMode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " Functions - RCX, Scout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword nqcFunction SensorValueRaw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " Functions - Scout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword nqcFunction SetSensorLowerLimit SetSensorUpperLimit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword nqcFunction SetSensorHysteresis CalibrateSensor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 " Outputs --------------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 " Outputs for On(), Off(), etc.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword nqcConstant OUT_A OUT_B OUT_C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " Modes for SetOutput()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword nqcConstant OUT_ON OUT_OFF OUT_FLOAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " Directions for SetDirection()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword nqcConstant OUT_FWD OUT_REV OUT_TOGGLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 " Output power for SetPower()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword nqcConstant OUT_LOW OUT_HALF OUT_FULL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 " Functions - All
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword nqcFunction SetOutput SetDirection SetPower OutputStatus
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword nqcFunction On Off Float Fwd Rev Toggle
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword nqcFunction OnFwd OnRev OnFor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 " Functions - RXC2, Scout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword nqcFunction SetGlobalOutput SetGlobalDirection SetMaxPower
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn keyword nqcFunction GlobalOutputStatus
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 " Sound ----------------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 " Sounds for PlaySound()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword nqcConstant SOUND_CLICK SOUND_DOUBLE_BEEP SOUND_DOWN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword nqcConstant SOUND_UP SOUND_LOW_BEEP SOUND_FAST_UP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 " Functions - All
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword nqcFunction PlaySound PlayTone
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 " Functions - RCX2, Scout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword nqcFunction MuteSound UnmuteSound ClearSound
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword nqcFunction SelectSounds
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 " LCD ------------------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 " Modes for SelectDisplay()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword nqcConstant DISPLAY_WATCH DISPLAY_SENSOR_1 DISPLAY_SENSOR_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn keyword nqcConstant DISPLAY_SENSOR_3 DISPLAY_OUT_A DISPLAY_OUT_B
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn keyword nqcConstant DISPLAY_OUT_C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 " RCX2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn keyword nqcConstant DISPLAY_USER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 " Functions - RCX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn keyword nqcFunction SelectDisplay
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 " Functions - RCX2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword nqcFunction SetUserDisplay
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 " Communication --------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 " Messages - RCX, Scout ------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 " Tx power level for SetTxPower()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn keyword nqcConstant TX_POWER_LO TX_POWER_HI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 " Functions - RCX, Scout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn keyword nqcFunction Message ClearMessage SendMessage SetTxPower
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 " Serial - RCX2 --------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 " for SetSerialComm()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn keyword nqcConstant SERIAL_COMM_DEFAULT SERIAL_COMM_4800
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syn keyword nqcConstant SERIAL_COMM_DUTY25 SERIAL_COMM_76KHZ
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 " for SetSerialPacket()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn keyword nqcConstant SERIAL_PACKET_DEFAULT SERIAL_PACKET_PREAMBLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn keyword nqcConstant SERIAL_PACKET_NEGATED SERIAL_PACKET_CHECKSUM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn keyword nqcConstant SERIAL_PACKET_RCX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 " Functions - RCX2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn keyword nqcFunction SetSerialComm SetSerialPacket SetSerialData
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn keyword nqcFunction SerialData SendSerial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 " VLL - Scout ----------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 " Functions - Scout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn keyword nqcFunction SendVLL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 " Timers ---------------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 " Functions - All
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn keyword nqcFunction ClearTimer Timer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 " Functions - RCX2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn keyword nqcFunction SetTimer FastTimer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 " Counters -------------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 " Functions - RCX2, Scout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn keyword nqcFunction ClearCounter IncCounter DecCounter Counter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 " Access Control -------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 syn keyword nqcConstant ACQUIRE_OUT_A ACQUIRE_OUT_B ACQUIRE_OUT_C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn keyword nqcConstant ACQUIRE_SOUND
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 " RCX2 only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn keyword nqcConstant ACQUIRE_USER_1 ACQUIRE_USER_2 ACQUIRE_USER_3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 syn keyword nqcConstant ACQUIRE_USER_4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 " Functions - RCX2, Scout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn keyword nqcFunction SetPriority
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 " Events ---------------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 " RCX2 Events
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 syn keyword nqcConstant EVENT_TYPE_PRESSED EVENT_TYPE_RELEASED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 syn keyword nqcConstant EVENT_TYPE_PULSE EVENT_TYPE_EDGE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn keyword nqcConstant EVENT_TYPE_FAST_CHANGE EVENT_TYPE_LOW
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syn keyword nqcConstant EVENT_TYPE_NORMAL EVENT_TYPE_HIGH
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 syn keyword nqcConstant EVENT_TYPE_CLICK EVENT_TYPE_DOUBLECLICK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 syn keyword nqcConstant EVENT_TYPE_MESSAGE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 " Scout Events
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn keyword nqcConstant EVENT_1_PRESSED EVENT_1_RELEASED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn keyword nqcConstant EVENT_2_PRESSED EVENT_2_RELEASED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn keyword nqcConstant EVENT_LIGHT_HIGH EVENT_LIGHT_NORMAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 syn keyword nqcConstant EVENT_LIGHT_LOW EVENT_LIGHT_CLICK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syn keyword nqcConstant EVENT_LIGHT_DOUBLECLICK EVENT_COUNTER_0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syn keyword nqcConstant EVENT_COUNTER_1 EVENT_TIMER_0 EVENT_TIMER_1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 syn keyword nqcConstant EVENT_TIMER_2 EVENT_MESSAGE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 " Functions - RCX2, Scout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 syn keyword nqcFunction ActiveEvents Event
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 " Functions - RCX2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 syn keyword nqcFunction CurrentEvents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 syn keyword nqcFunction SetEvent ClearEvent ClearAllEvents EventState
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 syn keyword nqcFunction CalibrateEvent SetUpperLimit UpperLimit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 syn keyword nqcFunction SetLowerLimit LowerLimit SetHysteresis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 syn keyword nqcFunction Hysteresis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn keyword nqcFunction SetClickTime ClickTime SetClickCounter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 syn keyword nqcFunction ClickCounter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 " Functions - Scout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 syn keyword nqcFunction SetSensorClickTime SetCounterLimit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 syn keyword nqcFunction SetTimerLimit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 " Data Logging ---------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 " Functions - RCX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 syn keyword nqcFunction CreateDatalog AddToDatalog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 syn keyword nqcFunction UploadDatalog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 " General Features -----------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 " Functions - All
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 syn keyword nqcFunction Wait StopAllTasks Random
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 syn keyword nqcFunction SetSleepTime SleepNow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 " Functions - RCX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 syn keyword nqcFunction Program Watch SetWatch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 " Functions - RCX2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 syn keyword nqcFunction SetRandomSeed SelectProgram
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 syn keyword nqcFunction BatteryLevel FirmwareVersion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 " Functions - Scout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 " Parameters for SetLight()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 syn keyword nqcConstant LIGHT_ON LIGHT_OFF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 syn keyword nqcFunction SetScoutRules ScoutRules SetScoutMode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 syn keyword nqcFunction SetEventFeedback EventFeedback SetLight
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 " additional CyberMaster defines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 syn keyword nqcConstant OUT_L OUT_R OUT_X
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 syn keyword nqcConstant SENSOR_L SENSOR_M SENSOR_R
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 " Functions - CyberMaster
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 syn keyword nqcFunction Drive OnWait OnWaitDifferent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 syn keyword nqcFunction ClearTachoCounter TachoCount TachoSpeed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 syn keyword nqcFunction ExternalMotorRunning AGC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 " nqcCommentGroup allows adding matches for special things in comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 syn keyword nqcTodo contained TODO FIXME XXX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 syn cluster nqcCommentGroup contains=nqcTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 "when wanted, highlight trailing white space
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 if exists("nqc_space_errors")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 if !exists("nqc_no_trail_space_error")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 syn match nqcSpaceError display excludenl "\s\+$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 if !exists("nqc_no_tab_space_error")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 syn match nqcSpaceError display " \+\t"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 "catch errors caused by wrong parenthesis and brackets
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 syn cluster nqcParenGroup contains=nqcParenError,nqcIncluded,nqcCommentSkip,@nqcCommentGroup,nqcCommentStartError,nqcCommentSkip,nqcCppOut,nqcCppOut2,nqcCppSkip,nqcNumber,nqcFloat,nqcNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 if exists("nqc_no_bracket_error")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 syn region nqcParen transparent start='(' end=')' contains=ALLBUT,@nqcParenGroup,nqcCppParen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 " nqcCppParen: same as nqcParen but ends at end-of-line; used in nqcDefine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 syn region nqcCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@nqcParenGroup,nqcParen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 syn match nqcParenError display ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 syn match nqcErrInParen display contained "[{}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 syn region nqcParen transparent start='(' end=')' contains=ALLBUT,@nqcParenGroup,nqcCppParen,nqcErrInBracket,nqcCppBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 " nqcCppParen: same as nqcParen but ends at end-of-line; used in nqcDefine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 syn region nqcCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@nqcParenGroup,nqcErrInBracket,nqcParen,nqcBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 syn match nqcParenError display "[\])]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 syn match nqcErrInParen display contained "[\]{}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 syn region nqcBracket transparent start='\[' end=']' contains=ALLBUT,@nqcParenGroup,nqcErrInParen,nqcCppParen,nqcCppBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 " nqcCppBracket: same as nqcParen but ends at end-of-line; used in nqcDefine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 syn region nqcCppBracket transparent start='\[' skip='\\$' excludenl end=']' end='$' contained contains=ALLBUT,@nqcParenGroup,nqcErrInParen,nqcParen,nqcBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 syn match nqcErrInBracket display contained "[);{}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 "integer number, or floating point number without a dot and with "f".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 syn match nqcNumbers display transparent "\<\d\|\.\d" contains=nqcNumber,nqcFloat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 " Same, but without octal error (for comments)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 syn match nqcNumber display contained "\d\+\(u\=l\{0,2}\|ll\=u\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 "hex number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 syn match nqcNumber display contained "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 " Flag the first zero of an octal number as something special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 syn match nqcFloat display contained "\d\+f"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 "floating point number, with dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 syn match nqcFloat display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 "floating point number, starting with a dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 syn match nqcFloat display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 "floating point number, without dot, with exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 syn match nqcFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 " flag an octal number with wrong digits
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 syn region nqcCommentL start="//" skip="\\$" end="$" keepend contains=@nqcCommentGroup,nqcSpaceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 syn region nqcComment matchgroup=nqcCommentStart start="/\*" matchgroup=NONE end="\*/" contains=@nqcCommentGroup,nqcCommentStartError,nqcSpaceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 " keep a // comment separately, it terminates a preproc. conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 syntax match nqcCommentError display "\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 syntax match nqcCommentStartError display "/\*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 syn region nqcPreCondit start="^\s*#\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" end="//"me=s-1 contains=nqcComment,nqcCharacter,nqcCppParen,nqcParenError,nqcNumbers,nqcCommentError,nqcSpaceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 syn match nqcPreCondit display "^\s*#\s*\(else\|endif\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 if !exists("nqc_no_if0")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 syn region nqcCppOut start="^\s*#\s*if\s\+0\>" end=".\|$" contains=nqcCppOut2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 syn region nqcCppOut2 contained start="0" end="^\s*#\s*\(endif\>\|else\>\|elif\>\)" contains=nqcSpaceError,nqcCppSkip
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 syn region nqcCppSkip contained start="^\s*#\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*#\s*endif\>" contains=nqcSpaceError,nqcCppSkip
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 syn region nqcIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 syn match nqcInclude display "^\s*#\s*include\>\s*["]" contains=nqcIncluded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 "syn match nqcLineSkip "\\$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 syn cluster nqcPreProcGroup contains=nqcPreCondit,nqcIncluded,nqcInclude,nqcDefine,nqcErrInParen,nqcErrInBracket,nqcCppOut,nqcCppOut2,nqcCppSkip,nqcNumber,nqcFloat,nqcNumbers,nqcCommentSkip,@nqcCommentGroup,nqcCommentStartError,nqcParen,nqcBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 syn region nqcDefine start="^\s*#\s*\(define\|undef\)\>" skip="\\$" end="$" contains=ALLBUT,@nqcPreProcGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 syn region nqcPreProc start="^\s*#\s*\(pragma\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@nqcPreProcGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 if !exists("nqc_minlines")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 if !exists("nqc_no_if0")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 let nqc_minlines = 50 " #if 0 constructs can be long
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 let nqc_minlines = 15 " mostly for () constructs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 exec "syn sync ccomment nqcComment minlines=" . nqc_minlines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
326 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
328 " The default methods for highlighting. Can be overridden later
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
329 hi def link nqcLabel Label
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
330 hi def link nqcConditional Conditional
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
331 hi def link nqcRepeat Repeat
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
332 hi def link nqcCharacter Character
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
333 hi def link nqcNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
334 hi def link nqcFloat Float
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
335 hi def link nqcFunction Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
336 hi def link nqcParenError nqcError
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
337 hi def link nqcErrInParen nqcError
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
338 hi def link nqcErrInBracket nqcError
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
339 hi def link nqcCommentL nqcComment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
340 hi def link nqcCommentStart nqcComment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
341 hi def link nqcCommentError nqcError
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
342 hi def link nqcCommentStartError nqcError
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
343 hi def link nqcSpaceError nqcError
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
344 hi def link nqcStorageClass StorageClass
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
345 hi def link nqcInclude Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
346 hi def link nqcPreProc PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
347 hi def link nqcDefine Macro
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
348 hi def link nqcIncluded String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
349 hi def link nqcError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
350 hi def link nqcStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
351 hi def link nqcEvents Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
352 hi def link nqcPreCondit PreCondit
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
353 hi def link nqcType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
354 hi def link nqcConstant Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
355 hi def link nqcCommentSkip nqcComment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
356 hi def link nqcComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
357 hi def link nqcTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
358 hi def link nqcCppSkip nqcCppOut
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
359 hi def link nqcCppOut2 nqcCppOut
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
360 hi def link nqcCppOut Comment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 let b:current_syntax = "nqc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 " vim: ts=8