From ac5b92391c080c65678a792743a69ed6c093bd16 Mon Sep 17 00:00:00 2001 From: Kurtis Moxley Date: Thu, 19 May 2022 22:50:49 +0800 Subject: [PATCH] Update typescript-vim. --- sources_non_forked/typescript-vim/syntax/typescript.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources_non_forked/typescript-vim/syntax/typescript.vim b/sources_non_forked/typescript-vim/syntax/typescript.vim index 474e2288..5ae37226 100644 --- a/sources_non_forked/typescript-vim/syntax/typescript.vim +++ b/sources_non_forked/typescript-vim/syntax/typescript.vim @@ -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 else