1
0
Fork 0
mirror of synced 2024-12-25 08:13:20 -05:00

Update typescript-vim.

This commit is contained in:
Kurtis Moxley 2022-05-19 22:50:49 +08:00
parent 7470ef6eff
commit ac5b92391c

View file

@ -206,7 +206,7 @@ syntax keyword typescriptFuncKeyword function
syn match typescriptBraces "[{}\[\]]" syn match typescriptBraces "[{}\[\]]"
syn match typescriptParens "[()]" syn match typescriptParens "[()]"
syn match typescriptEndColons "[;,]" syn match typescriptEndColons "[;,]"
syn match typescriptLogicSymbols "\(&&\)\|\(||\)\|\(!\)" syn match typescriptLogicSymbols "\(&&\)\|\(||\)\|\(??\)\|\(!\)"
syn match typescriptOpSymbols "=\{1,3}\|!==\|!=\|<\|>\|>=\|<=\|++\|+=\|--\|-=" syn match typescriptOpSymbols "=\{1,3}\|!==\|!=\|<\|>\|>=\|<=\|++\|+=\|--\|-="
" typescriptFold Function {{{ " typescriptFold Function {{{
@ -226,9 +226,9 @@ syn region foldBraces start=/{/ skip=/\(\/\/.*\)\|\(\/.*\/\)/ end=/}/ transparen
" Define the default highlighting. " Define the default highlighting.
" For version 5.7 and earlier: only when not done already by this script " For version 5.7 and earlier: only when not done already by this script
" For version 5.8 and later: only when an item doesn't have highlighting yet " For version 5.8 and later: only when an item doesn't have highlighting yet
" For version 8.1.1486 and later: only when not done already by this script (need to override vim's new typescript support) " 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)
if version >= 508 || !exists("did_typescript_syn_inits") if version >= 508 || !exists("did_typescript_syn_inits")
if version < 508 || has('patch-8.1.1486') if version < 508 || has('patch-8.1.1486') || has('nvim-0.5.0')
let did_typescript_syn_inits = 1 let did_typescript_syn_inits = 1
command -nargs=+ HiLink hi link <args> command -nargs=+ HiLink hi link <args>
else else