Update typescript-vim.
This commit is contained in:
parent
7470ef6eff
commit
ac5b92391c
1 changed files with 3 additions and 3 deletions
|
@ -206,7 +206,7 @@ syntax keyword typescriptFuncKeyword function
|
|||
syn match typescriptBraces "[{}\[\]]"
|
||||
syn match typescriptParens "[()]"
|
||||
syn match typescriptEndColons "[;,]"
|
||||
syn match typescriptLogicSymbols "\(&&\)\|\(||\)\|\(!\)"
|
||||
syn match typescriptLogicSymbols "\(&&\)\|\(||\)\|\(??\)\|\(!\)"
|
||||
syn match typescriptOpSymbols "=\{1,3}\|!==\|!=\|<\|>\|>=\|<=\|++\|+=\|--\|-="
|
||||
|
||||
" typescriptFold Function {{{
|
||||
|
@ -226,9 +226,9 @@ syn region foldBraces start=/{/ skip=/\(\/\/.*\)\|\(\/.*\/\)/ end=/}/ transparen
|
|||
" Define the default highlighting.
|
||||
" 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 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 || has('patch-8.1.1486')
|
||||
if version < 508 || has('patch-8.1.1486') || has('nvim-0.5.0')
|
||||
let did_typescript_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue