Mercurial > vim
annotate runtime/syntax/lua.vim @ 22066:5f015f7d330c
Added tag v8.2.1582 for changeset d8b95a9cdaaa1b7218212b4a3321c973a0dae0c3
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 03 Sep 2020 19:30:04 +0200 |
parents | 46763b01cd9a |
children | 6dd88e45d47d |
rev | line source |
---|---|
838 | 1 " Vim syntax file |
3237 | 2 " Language: Lua 4.0, Lua 5.0, Lua 5.1 and Lua 5.2 |
3 " Maintainer: Marcus Aurelius Farias <masserahguard-lua 'at' yahoo com> | |
838 | 4 " First Author: Carlos Augusto Teixeira Mendes <cmendes 'at' inf puc-rio br> |
3750 | 5 " Last Change: 2012 Aug 12 |
838 | 6 " Options: lua_version = 4 or 5 |
3237 | 7 " lua_subversion = 0 (4.0, 5.0) or 1 (5.1) or 2 (5.2) |
8 " default 5.2 | |
838 | 9 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3750
diff
changeset
|
10 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3750
diff
changeset
|
11 if exists("b:current_syntax") |
838 | 12 finish |
13 endif | |
14 | |
3356 | 15 let s:cpo_save = &cpo |
16 set cpo&vim | |
17 | |
838 | 18 if !exists("lua_version") |
3237 | 19 " Default is lua 5.2 |
838 | 20 let lua_version = 5 |
3237 | 21 let lua_subversion = 2 |
838 | 22 elseif !exists("lua_subversion") |
23 " lua_version exists, but lua_subversion doesn't. So, set it to 0 | |
24 let lua_subversion = 0 | |
25 endif | |
26 | |
27 syn case match | |
28 | |
29 " syncing method | |
30 syn sync minlines=100 | |
31 | |
32 " Comments | |
3237 | 33 syn keyword luaTodo contained TODO FIXME XXX |
34 syn match luaComment "--.*$" contains=luaTodo,@Spell | |
838 | 35 if lua_version == 5 && lua_subversion == 0 |
3237 | 36 syn region luaComment matchgroup=luaComment start="--\[\[" end="\]\]" contains=luaTodo,luaInnerComment,@Spell |
37 syn region luaInnerComment contained transparent start="\[\[" end="\]\]" | |
838 | 38 elseif lua_version > 5 || (lua_version == 5 && lua_subversion >= 1) |
39 " Comments in Lua 5.1: --[[ ... ]], [=[ ... ]=], [===[ ... ]===], etc. | |
3237 | 40 syn region luaComment matchgroup=luaComment start="--\[\z(=*\)\[" end="\]\z1\]" contains=luaTodo,@Spell |
838 | 41 endif |
42 | |
43 " First line may start with #! | |
44 syn match luaComment "\%^#!.*" | |
45 | |
46 " catch errors caused by wrong parenthesis and wrong curly brackets or | |
47 " keywords placed outside their respective blocks | |
3750 | 48 syn region luaParen transparent start='(' end=')' contains=ALLBUT,luaParenError,luaTodo,luaSpecial,luaIfThen,luaElseifThen,luaElse,luaThenEnd,luaBlock,luaLoopBlock,luaIn,luaStatement |
49 syn region luaTableBlock transparent matchgroup=luaTable start="{" end="}" contains=ALLBUT,luaBraceError,luaTodo,luaSpecial,luaIfThen,luaElseifThen,luaElse,luaThenEnd,luaBlock,luaLoopBlock,luaIn,luaStatement | |
838 | 50 |
3237 | 51 syn match luaParenError ")" |
3750 | 52 syn match luaBraceError "}" |
838 | 53 syn match luaError "\<\%(end\|else\|elseif\|then\|until\|in\)\>" |
54 | |
3750 | 55 " function ... end |
56 syn region luaFunctionBlock transparent matchgroup=luaFunction start="\<function\>" end="\<end\>" contains=ALLBUT,luaTodo,luaSpecial,luaElseifThen,luaElse,luaThenEnd,luaIn | |
838 | 57 |
3750 | 58 " if ... then |
59 syn region luaIfThen transparent matchgroup=luaCond start="\<if\>" end="\<then\>"me=e-4 contains=ALLBUT,luaTodo,luaSpecial,luaElseifThen,luaElse,luaIn nextgroup=luaThenEnd skipwhite skipempty | |
838 | 60 |
61 " then ... end | |
3750 | 62 syn region luaThenEnd contained transparent matchgroup=luaCond start="\<then\>" end="\<end\>" contains=ALLBUT,luaTodo,luaSpecial,luaThenEnd,luaIn |
838 | 63 |
64 " elseif ... then | |
3750 | 65 syn region luaElseifThen contained transparent matchgroup=luaCond start="\<elseif\>" end="\<then\>" contains=ALLBUT,luaTodo,luaSpecial,luaElseifThen,luaElse,luaThenEnd,luaIn |
838 | 66 |
3750 | 67 " else |
68 syn keyword luaElse contained else | |
838 | 69 |
70 " do ... end | |
3750 | 71 syn region luaBlock transparent matchgroup=luaStatement start="\<do\>" end="\<end\>" contains=ALLBUT,luaTodo,luaSpecial,luaElseifThen,luaElse,luaThenEnd,luaIn |
72 | |
838 | 73 " repeat ... until |
3750 | 74 syn region luaLoopBlock transparent matchgroup=luaRepeat start="\<repeat\>" end="\<until\>" contains=ALLBUT,luaTodo,luaSpecial,luaElseifThen,luaElse,luaThenEnd,luaIn |
838 | 75 |
76 " while ... do | |
3750 | 77 syn region luaLoopBlock transparent matchgroup=luaRepeat start="\<while\>" end="\<do\>"me=e-2 contains=ALLBUT,luaTodo,luaSpecial,luaIfThen,luaElseifThen,luaElse,luaThenEnd,luaIn nextgroup=luaBlock skipwhite skipempty |
838 | 78 |
79 " for ... do and for ... in ... do | |
3750 | 80 syn region luaLoopBlock transparent matchgroup=luaRepeat start="\<for\>" end="\<do\>"me=e-2 contains=ALLBUT,luaTodo,luaSpecial,luaIfThen,luaElseifThen,luaElse,luaThenEnd nextgroup=luaBlock skipwhite skipempty |
838 | 81 |
3750 | 82 syn keyword luaIn contained in |
838 | 83 |
84 " other keywords | |
85 syn keyword luaStatement return local break | |
3237 | 86 if lua_version > 5 || (lua_version == 5 && lua_subversion >= 2) |
87 syn keyword luaStatement goto | |
88 syn match luaLabel "::\I\i*::" | |
89 endif | |
90 syn keyword luaOperator and or not | |
91 syn keyword luaConstant nil | |
838 | 92 if lua_version > 4 |
93 syn keyword luaConstant true false | |
94 endif | |
95 | |
96 " Strings | |
97 if lua_version < 5 | |
3237 | 98 syn match luaSpecial contained "\\[\\abfnrtv\'\"]\|\\[[:digit:]]\{,3}" |
99 elseif lua_version == 5 | |
100 if lua_subversion == 0 | |
101 syn match luaSpecial contained #\\[\\abfnrtv'"[\]]\|\\[[:digit:]]\{,3}# | |
102 syn region luaString2 matchgroup=luaString start=+\[\[+ end=+\]\]+ contains=luaString2,@Spell | |
103 else | |
104 if lua_subversion == 1 | |
105 syn match luaSpecial contained #\\[\\abfnrtv'"]\|\\[[:digit:]]\{,3}# | |
106 else " Lua 5.2 | |
107 syn match luaSpecial contained #\\[\\abfnrtvz'"]\|\\x[[:xdigit:]]\{2}\|\\[[:digit:]]\{,3}# | |
108 endif | |
109 syn region luaString2 matchgroup=luaString start="\[\z(=*\)\[" end="\]\z1\]" contains=@Spell | |
110 endif | |
838 | 111 endif |
1121 | 112 syn region luaString start=+'+ end=+'+ skip=+\\\\\|\\'+ contains=luaSpecial,@Spell |
113 syn region luaString start=+"+ end=+"+ skip=+\\\\\|\\"+ contains=luaSpecial,@Spell | |
838 | 114 |
115 " integer number | |
1121 | 116 syn match luaNumber "\<\d\+\>" |
838 | 117 " floating point number, with dot, optional exponent |
3237 | 118 syn match luaNumber "\<\d\+\.\d*\%([eE][-+]\=\d\+\)\=\>" |
838 | 119 " floating point number, starting with a dot, optional exponent |
3237 | 120 syn match luaNumber "\.\d\+\%([eE][-+]\=\d\+\)\=\>" |
838 | 121 " floating point number, without dot, with exponent |
3237 | 122 syn match luaNumber "\<\d\+[eE][-+]\=\d\+\>" |
1121 | 123 |
124 " hex numbers | |
3237 | 125 if lua_version >= 5 |
126 if lua_subversion == 1 | |
127 syn match luaNumber "\<0[xX]\x\+\>" | |
128 elseif lua_subversion >= 2 | |
129 syn match luaNumber "\<0[xX][[:xdigit:].]\+\%([pP][-+]\=\d\+\)\=\>" | |
130 endif | |
1121 | 131 endif |
838 | 132 |
133 syn keyword luaFunc assert collectgarbage dofile error next | |
134 syn keyword luaFunc print rawget rawset tonumber tostring type _VERSION | |
135 | |
136 if lua_version == 4 | |
137 syn keyword luaFunc _ALERT _ERRORMESSAGE gcinfo | |
138 syn keyword luaFunc call copytagmethods dostring | |
139 syn keyword luaFunc foreach foreachi getglobal getn | |
140 syn keyword luaFunc gettagmethod globals newtag | |
141 syn keyword luaFunc setglobal settag settagmethod sort | |
142 syn keyword luaFunc tag tinsert tremove | |
143 syn keyword luaFunc _INPUT _OUTPUT _STDIN _STDOUT _STDERR | |
144 syn keyword luaFunc openfile closefile flush seek | |
145 syn keyword luaFunc setlocale execute remove rename tmpname | |
146 syn keyword luaFunc getenv date clock exit | |
147 syn keyword luaFunc readfrom writeto appendto read write | |
148 syn keyword luaFunc PI abs sin cos tan asin | |
149 syn keyword luaFunc acos atan atan2 ceil floor | |
150 syn keyword luaFunc mod frexp ldexp sqrt min max log | |
151 syn keyword luaFunc log10 exp deg rad random | |
152 syn keyword luaFunc randomseed strlen strsub strlower strupper | |
153 syn keyword luaFunc strchar strrep ascii strbyte | |
154 syn keyword luaFunc format strfind gsub | |
155 syn keyword luaFunc getinfo getlocal setlocal setcallhook setlinehook | |
156 elseif lua_version == 5 | |
3237 | 157 syn keyword luaFunc getmetatable setmetatable |
158 syn keyword luaFunc ipairs pairs | |
159 syn keyword luaFunc pcall xpcall | |
160 syn keyword luaFunc _G loadfile rawequal require | |
838 | 161 if lua_subversion == 0 |
3237 | 162 syn keyword luaFunc getfenv setfenv |
163 syn keyword luaFunc loadstring unpack | |
838 | 164 syn keyword luaFunc gcinfo loadlib LUA_PATH _LOADED _REQUIREDNAME |
3237 | 165 else |
166 syn keyword luaFunc load select | |
167 syn match luaFunc /\<package\.cpath\>/ | |
168 syn match luaFunc /\<package\.loaded\>/ | |
169 syn match luaFunc /\<package\.loadlib\>/ | |
170 syn match luaFunc /\<package\.path\>/ | |
171 if lua_subversion == 1 | |
172 syn keyword luaFunc getfenv setfenv | |
173 syn keyword luaFunc loadstring module unpack | |
174 syn match luaFunc /\<package\.loaders\>/ | |
175 syn match luaFunc /\<package\.preload\>/ | |
176 syn match luaFunc /\<package\.seeall\>/ | |
177 elseif lua_subversion == 2 | |
178 syn keyword luaFunc _ENV rawlen | |
179 syn match luaFunc /\<package\.config\>/ | |
180 syn match luaFunc /\<package\.preload\>/ | |
181 syn match luaFunc /\<package\.searchers\>/ | |
182 syn match luaFunc /\<package\.searchpath\>/ | |
183 syn match luaFunc /\<bit32\.arshift\>/ | |
184 syn match luaFunc /\<bit32\.band\>/ | |
185 syn match luaFunc /\<bit32\.bnot\>/ | |
186 syn match luaFunc /\<bit32\.bor\>/ | |
187 syn match luaFunc /\<bit32\.btest\>/ | |
188 syn match luaFunc /\<bit32\.bxor\>/ | |
189 syn match luaFunc /\<bit32\.extract\>/ | |
190 syn match luaFunc /\<bit32\.lrotate\>/ | |
191 syn match luaFunc /\<bit32\.lshift\>/ | |
192 syn match luaFunc /\<bit32\.replace\>/ | |
193 syn match luaFunc /\<bit32\.rrotate\>/ | |
194 syn match luaFunc /\<bit32\.rshift\>/ | |
195 endif | |
196 syn match luaFunc /\<coroutine\.running\>/ | |
838 | 197 endif |
3237 | 198 syn match luaFunc /\<coroutine\.create\>/ |
199 syn match luaFunc /\<coroutine\.resume\>/ | |
200 syn match luaFunc /\<coroutine\.status\>/ | |
201 syn match luaFunc /\<coroutine\.wrap\>/ | |
202 syn match luaFunc /\<coroutine\.yield\>/ | |
203 syn match luaFunc /\<string\.byte\>/ | |
204 syn match luaFunc /\<string\.char\>/ | |
205 syn match luaFunc /\<string\.dump\>/ | |
206 syn match luaFunc /\<string\.find\>/ | |
207 syn match luaFunc /\<string\.format\>/ | |
208 syn match luaFunc /\<string\.gsub\>/ | |
209 syn match luaFunc /\<string\.len\>/ | |
210 syn match luaFunc /\<string\.lower\>/ | |
211 syn match luaFunc /\<string\.rep\>/ | |
212 syn match luaFunc /\<string\.sub\>/ | |
213 syn match luaFunc /\<string\.upper\>/ | |
838 | 214 if lua_subversion == 0 |
3237 | 215 syn match luaFunc /\<string\.gfind\>/ |
216 else | |
217 syn match luaFunc /\<string\.gmatch\>/ | |
218 syn match luaFunc /\<string\.match\>/ | |
219 syn match luaFunc /\<string\.reverse\>/ | |
220 endif | |
221 if lua_subversion == 0 | |
222 syn match luaFunc /\<table\.getn\>/ | |
223 syn match luaFunc /\<table\.setn\>/ | |
224 syn match luaFunc /\<table\.foreach\>/ | |
225 syn match luaFunc /\<table\.foreachi\>/ | |
838 | 226 elseif lua_subversion == 1 |
3237 | 227 syn match luaFunc /\<table\.maxn\>/ |
228 elseif lua_subversion == 2 | |
229 syn match luaFunc /\<table\.pack\>/ | |
230 syn match luaFunc /\<table\.unpack\>/ | |
838 | 231 endif |
3237 | 232 syn match luaFunc /\<table\.concat\>/ |
233 syn match luaFunc /\<table\.sort\>/ | |
234 syn match luaFunc /\<table\.insert\>/ | |
235 syn match luaFunc /\<table\.remove\>/ | |
236 syn match luaFunc /\<math\.abs\>/ | |
237 syn match luaFunc /\<math\.acos\>/ | |
238 syn match luaFunc /\<math\.asin\>/ | |
239 syn match luaFunc /\<math\.atan\>/ | |
240 syn match luaFunc /\<math\.atan2\>/ | |
241 syn match luaFunc /\<math\.ceil\>/ | |
242 syn match luaFunc /\<math\.sin\>/ | |
243 syn match luaFunc /\<math\.cos\>/ | |
244 syn match luaFunc /\<math\.tan\>/ | |
245 syn match luaFunc /\<math\.deg\>/ | |
246 syn match luaFunc /\<math\.exp\>/ | |
247 syn match luaFunc /\<math\.floor\>/ | |
248 syn match luaFunc /\<math\.log\>/ | |
249 syn match luaFunc /\<math\.max\>/ | |
250 syn match luaFunc /\<math\.min\>/ | |
838 | 251 if lua_subversion == 0 |
3237 | 252 syn match luaFunc /\<math\.mod\>/ |
253 syn match luaFunc /\<math\.log10\>/ | |
254 else | |
255 if lua_subversion == 1 | |
256 syn match luaFunc /\<math\.log10\>/ | |
257 endif | |
258 syn match luaFunc /\<math\.huge\>/ | |
259 syn match luaFunc /\<math\.fmod\>/ | |
260 syn match luaFunc /\<math\.modf\>/ | |
261 syn match luaFunc /\<math\.cosh\>/ | |
262 syn match luaFunc /\<math\.sinh\>/ | |
263 syn match luaFunc /\<math\.tanh\>/ | |
838 | 264 endif |
3237 | 265 syn match luaFunc /\<math\.pow\>/ |
266 syn match luaFunc /\<math\.rad\>/ | |
267 syn match luaFunc /\<math\.sqrt\>/ | |
268 syn match luaFunc /\<math\.frexp\>/ | |
269 syn match luaFunc /\<math\.ldexp\>/ | |
270 syn match luaFunc /\<math\.random\>/ | |
271 syn match luaFunc /\<math\.randomseed\>/ | |
272 syn match luaFunc /\<math\.pi\>/ | |
273 syn match luaFunc /\<io\.close\>/ | |
274 syn match luaFunc /\<io\.flush\>/ | |
275 syn match luaFunc /\<io\.input\>/ | |
276 syn match luaFunc /\<io\.lines\>/ | |
277 syn match luaFunc /\<io\.open\>/ | |
278 syn match luaFunc /\<io\.output\>/ | |
279 syn match luaFunc /\<io\.popen\>/ | |
280 syn match luaFunc /\<io\.read\>/ | |
281 syn match luaFunc /\<io\.stderr\>/ | |
282 syn match luaFunc /\<io\.stdin\>/ | |
283 syn match luaFunc /\<io\.stdout\>/ | |
284 syn match luaFunc /\<io\.tmpfile\>/ | |
285 syn match luaFunc /\<io\.type\>/ | |
286 syn match luaFunc /\<io\.write\>/ | |
287 syn match luaFunc /\<os\.clock\>/ | |
288 syn match luaFunc /\<os\.date\>/ | |
289 syn match luaFunc /\<os\.difftime\>/ | |
290 syn match luaFunc /\<os\.execute\>/ | |
291 syn match luaFunc /\<os\.exit\>/ | |
292 syn match luaFunc /\<os\.getenv\>/ | |
293 syn match luaFunc /\<os\.remove\>/ | |
294 syn match luaFunc /\<os\.rename\>/ | |
295 syn match luaFunc /\<os\.setlocale\>/ | |
296 syn match luaFunc /\<os\.time\>/ | |
297 syn match luaFunc /\<os\.tmpname\>/ | |
298 syn match luaFunc /\<debug\.debug\>/ | |
299 syn match luaFunc /\<debug\.gethook\>/ | |
300 syn match luaFunc /\<debug\.getinfo\>/ | |
301 syn match luaFunc /\<debug\.getlocal\>/ | |
302 syn match luaFunc /\<debug\.getupvalue\>/ | |
303 syn match luaFunc /\<debug\.setlocal\>/ | |
304 syn match luaFunc /\<debug\.setupvalue\>/ | |
305 syn match luaFunc /\<debug\.sethook\>/ | |
306 syn match luaFunc /\<debug\.traceback\>/ | |
838 | 307 if lua_subversion == 1 |
3237 | 308 syn match luaFunc /\<debug\.getfenv\>/ |
309 syn match luaFunc /\<debug\.setfenv\>/ | |
310 syn match luaFunc /\<debug\.getmetatable\>/ | |
311 syn match luaFunc /\<debug\.setmetatable\>/ | |
312 syn match luaFunc /\<debug\.getregistry\>/ | |
313 elseif lua_subversion == 2 | |
314 syn match luaFunc /\<debug\.getmetatable\>/ | |
315 syn match luaFunc /\<debug\.setmetatable\>/ | |
316 syn match luaFunc /\<debug\.getregistry\>/ | |
317 syn match luaFunc /\<debug\.getuservalue\>/ | |
318 syn match luaFunc /\<debug\.setuservalue\>/ | |
319 syn match luaFunc /\<debug\.upvalueid\>/ | |
320 syn match luaFunc /\<debug\.upvaluejoin\>/ | |
838 | 321 endif |
322 endif | |
323 | |
324 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3750
diff
changeset
|
325 " Only when an item doesn't have highlighting yet |
838 | 326 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
327 hi def link luaStatement Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
328 hi def link luaRepeat Repeat |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
329 hi def link luaFor Repeat |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
330 hi def link luaString String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
331 hi def link luaString2 String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
332 hi def link luaNumber Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
333 hi def link luaOperator Operator |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
334 hi def link luaIn Operator |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
335 hi def link luaConstant Constant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
336 hi def link luaCond Conditional |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
337 hi def link luaElse Conditional |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
338 hi def link luaFunction Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
339 hi def link luaComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
340 hi def link luaTodo Todo |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
341 hi def link luaTable Structure |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
342 hi def link luaError Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
343 hi def link luaParenError Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
344 hi def link luaBraceError Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
345 hi def link luaSpecial SpecialChar |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
346 hi def link luaFunc Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
347 hi def link luaLabel Label |
838 | 348 |
349 | |
350 let b:current_syntax = "lua" | |
351 | |
3356 | 352 let &cpo = s:cpo_save |
353 unlet s:cpo_save | |
3237 | 354 " vim: et ts=8 sw=2 |