@@ -224,110 +224,104 @@ syn region foldBraces start=/{/ skip=/\(\/\/.*\)\|\(\/.*\/\)/ end=/}/ transparen
|
224 | 224 | " }}}
|
225 | 225 |
|
226 | 226 | " Define the default highlighting.
|
227 |
| -" For version 5.7 and earlier: only when not done already by this script |
228 |
| -" For version 5.8 and later: only when an item doesn't have highlighting yet |
229 |
| -" For version 8.1.1486 and later, and nvim 0.5.0 and later: only when not done already by this script (need to override vim's new typescript support) |
230 |
| -if version >= 508 || !exists("did_typescript_syn_inits") |
231 |
| -if version < 508 || has('-8.1.1486') || has('nvim-0.5.0') |
232 |
| -let did_typescript_syn_inits = 1 |
233 |
| -command -nargs=+ HiLink hi link <args> |
234 |
| -else |
235 |
| -command -nargs=+ HiLink hi def link <args> |
236 |
| -endif |
237 |
| - |
238 |
| -"typescript highlighting |
239 |
| -HiLink typescriptParameters Operator |
240 |
| -HiLink typescriptSuperBlock Operator |
241 |
| - |
242 |
| -HiLink typescriptEndColons Exception |
243 |
| -HiLink typescriptOpSymbols Operator |
244 |
| -HiLink typescriptLogicSymbols Boolean |
245 |
| -HiLink typescriptBraces Function |
246 |
| -HiLink typescriptParens Operator |
247 |
| -HiLink typescriptComment Comment |
248 |
| -HiLink typescriptLineComment Comment |
249 |
| -HiLink typescriptRefComment Include |
250 |
| -HiLink typescriptRefS String |
251 |
| -HiLink typescriptRefD String |
252 |
| -HiLink typescriptDocComment Comment |
253 |
| -HiLink typescriptCommentTodo Todo |
254 |
| -HiLink typescriptCvsTag Function |
255 |
| -HiLink typescriptDocTags Special |
256 |
| -HiLink typescriptDocSeeTag Function |
257 |
| -HiLink typescriptDocParam Function |
258 |
| -HiLink typescriptStringS String |
259 |
| -HiLink typescriptStringD String |
260 |
| -HiLink typescriptStringB String |
261 |
| -HiLink typescriptInterpolationDelimiter Delimiter |
262 |
| -HiLink typescriptRegexpString String |
263 |
| -HiLink typescriptGlobal Constant |
264 |
| -HiLink typescriptCharacter Character |
265 |
| -HiLink typescript Type |
266 |
| -HiLink typescriptConditional Conditional |
267 |
| -HiLink typescriptBranch Conditional |
268 |
| -HiLink typescriptIdentifier Identifier |
269 |
| -HiLink typescriptStorageClass StorageClass |
270 |
| -HiLink typescriptRepeat Repeat |
271 |
| -HiLink typescriptStatement Statement |
272 |
| -HiLink typescriptFuncKeyword Keyword |
273 |
| -HiLink typescriptMessage Keyword |
274 |
| -HiLink typescriptDeprecated Exception |
275 |
| -HiLink typescriptError Error |
276 |
| -HiLink typescriptParensError Error |
277 |
| -HiLink typescriptParensErrA Error |
278 |
| -HiLink typescriptParensErrB Error |
279 |
| -HiLink typescriptParensErrC Error |
280 |
| -HiLink typescriptReserved Keyword |
281 |
| -HiLink typescriptOperator Operator |
282 |
| -HiLink typescriptType Type |
283 |
| -HiLink typescriptNull Type |
284 |
| -HiLink typescriptNumber Number |
285 |
| -HiLink typescriptFloat Number |
286 |
| -HiLink typescriptDecorators Special |
287 |
| -HiLink typescriptBoolean Boolean |
288 |
| -HiLink typescriptLabel Label |
289 |
| -HiLink typescriptSpecial Special |
290 |
| -HiLink typescriptSource Special |
291 |
| -HiLink typescriptGlobalObjects Special |
292 |
| -HiLink typescriptGlobalNodeObjects Special |
293 |
| -HiLink typescriptExceptions Special |
294 |
| - |
295 |
| -HiLink typescriptDomErrNo Constant |
296 |
| -HiLink typescriptDomNodeConsts Constant |
297 |
| -HiLink typescriptDomElemAttrs Label |
298 |
| -HiLink typescriptDomElemFuncs PreProc |
299 |
| - |
300 |
| -HiLink typescriptHtmlElemAttrs Label |
301 |
| -HiLink typescriptHtmlElemFuncs PreProc |
302 |
| - |
303 |
| -HiLink typescriptCssStyles Label |
304 |
| - |
305 |
| -" Ajax Highlighting |
306 |
| -HiLink typescriptBrowserObjects Constant |
307 |
| - |
308 |
| -HiLink typescriptDOMObjects Constant |
309 |
| -HiLink typescriptDOMMethods Function |
310 |
| -HiLink typescriptDOMProperties Special |
311 |
| - |
312 |
| -HiLink typescriptAjaxObjects Constant |
313 |
| -HiLink typescriptAjaxMethods Function |
314 |
| -HiLink typescriptAjaxProperties Special |
315 |
| - |
316 |
| -HiLink typescriptFuncDef Title |
317 |
| -HiLink typescriptFuncArg Special |
318 |
| -HiLink typescriptFuncComma Operator |
319 |
| - |
320 |
| -HiLink typescriptHtmlEvents Special |
321 |
| -HiLink typescriptHtmlElemProperties Special |
322 |
| - |
323 |
| -HiLink typescriptEventListenerKeywords Keyword |
324 |
| - |
325 |
| -HiLink typescriptNumber Number |
326 |
| -HiLink typescriptPropietaryObjects Constant |
327 |
| - |
328 |
| -delcommand HiLink |
| 227 | +if version < 508 |
| 228 | +command -nargs=+ HiLink hi link <args> |
| 229 | +else |
| 230 | +command -nargs=+ HiLink hi def link <args> |
329 | 231 | endif
|
330 | 232 |
|
| 233 | +"typescript highlighting |
| 234 | +HiLink typescriptParameters Operator |
| 235 | +HiLink typescriptSuperBlock Operator |
| 236 | + |
| 237 | +HiLink typescriptEndColons Exception |
| 238 | +HiLink typescriptOpSymbols Operator |
| 239 | +HiLink typescriptLogicSymbols Boolean |
| 240 | +HiLink typescriptBraces Function |
| 241 | +HiLink typescriptParens Operator |
| 242 | +HiLink typescriptComment Comment |
| 243 | +HiLink typescriptLineComment Comment |
| 244 | +HiLink typescriptRefComment Include |
| 245 | +HiLink typescriptRefS String |
| 246 | +HiLink typescriptRefD String |
| 247 | +HiLink typescriptDocComment Comment |
| 248 | +HiLink typescriptCommentTodo Todo |
| 249 | +HiLink typescriptCvsTag Function |
| 250 | +HiLink typescriptDocTags Special |
| 251 | +HiLink typescriptDocSeeTag Function |
| 252 | +HiLink typescriptDocParam Function |
| 253 | +HiLink typescriptStringS String |
| 254 | +HiLink typescriptStringD String |
| 255 | +HiLink typescriptStringB String |
| 256 | +HiLink typescriptInterpolationDelimiter Delimiter |
| 257 | +HiLink typescriptRegexpString String |
| 258 | +HiLink typescriptGlobal Constant |
| 259 | +HiLink typescriptCharacter Character |
| 260 | +HiLink typescript Type |
| 261 | +HiLink typescriptConditional Conditional |
| 262 | +HiLink typescriptBranch Conditional |
| 263 | +HiLink typescriptIdentifier Identifier |
| 264 | +HiLink typescriptStorageClass StorageClass |
| 265 | +HiLink typescriptRepeat Repeat |
| 266 | +HiLink typescriptStatement Statement |
| 267 | +HiLink typescriptFuncKeyword Keyword |
| 268 | +HiLink typescriptMessage Keyword |
| 269 | +HiLink typescriptDeprecated Exception |
| 270 | +HiLink typescriptError Error |
| 271 | +HiLink typescriptParensError Error |
| 272 | +HiLink typescriptParensErrA Error |
| 273 | +HiLink typescriptParensErrB Error |
| 274 | +HiLink typescriptParensErrC Error |
| 275 | +HiLink typescriptReserved Keyword |
| 276 | +HiLink typescriptOperator Operator |
| 277 | +HiLink typescriptType Type |
| 278 | +HiLink typescriptNull Type |
| 279 | +HiLink typescriptNumber Number |
| 280 | +HiLink typescriptFloat Number |
| 281 | +HiLink typescriptDecorators Special |
| 282 | +HiLink typescriptBoolean Boolean |
| 283 | +HiLink typescriptLabel Label |
| 284 | +HiLink typescriptSpecial Special |
| 285 | +HiLink typescriptSource Special |
| 286 | +HiLink typescriptGlobalObjects Special |
| 287 | +HiLink typescriptGlobalNodeObjects Special |
| 288 | +HiLink typescriptExceptions Special |
| 289 | + |
| 290 | +HiLink typescriptDomErrNo Constant |
| 291 | +HiLink typescriptDomNodeConsts Constant |
| 292 | +HiLink typescriptDomElemAttrs Label |
| 293 | +HiLink typescriptDomElemFuncs PreProc |
| 294 | + |
| 295 | +HiLink typescriptHtmlElemAttrs Label |
| 296 | +HiLink typescriptHtmlElemFuncs PreProc |
| 297 | + |
| 298 | +HiLink typescriptCssStyles Label |
| 299 | + |
| 300 | +" Ajax Highlighting |
| 301 | +HiLink typescriptBrowserObjects Constant |
| 302 | + |
| 303 | +HiLink typescriptDOMObjects Constant |
| 304 | +HiLink typescriptDOMMethods Function |
| 305 | +HiLink typescriptDOMProperties Special |
| 306 | + |
| 307 | +HiLink typescriptAjaxObjects Constant |
| 308 | +HiLink typescriptAjaxMethods Function |
| 309 | +HiLink typescriptAjaxProperties Special |
| 310 | + |
| 311 | +HiLink typescriptFuncDef Title |
| 312 | +HiLink typescriptFuncArg Special |
| 313 | +HiLink typescriptFuncComma Operator |
| 314 | + |
| 315 | +HiLink typescriptHtmlEvents Special |
| 316 | +HiLink typescriptHtmlElemProperties Special |
| 317 | + |
| 318 | +HiLink typescriptEventListenerKeywords Keyword |
| 319 | + |
| 320 | +HiLink typescriptNumber Number |
| 321 | +HiLink typescriptPropietaryObjects Constant |
| 322 | + |
| 323 | +delcommand HiLink |
| 324 | + |
331 | 325 | " Define the htmltypescript for HTML syntax html.vim
|
332 | 326 | "syntax clear htmltypescript
|
333 | 327 | "syntax clear typescriptExpression
|
|
0 commit comments