From 90d4c2859b96d290c56d6f8eed7387b358e99743 Mon Sep 17 00:00:00 2001 From: Andrei Bartashevich Date: Sun, 1 Aug 2021 22:58:04 +0300 Subject: [PATCH 1/2] Add "??" to "typescriptLogicSymbols" --- syntax/typescript.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/typescript.vim b/syntax/typescript.vim index 474e228..46498b5 100644 --- a/syntax/typescript.vim +++ b/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 {{{ From e27837143d2444e006a00c12476ba28286b7c3b9 Mon Sep 17 00:00:00 2001 From: Andrei Bartashevich Date: Tue, 19 Apr 2022 02:10:26 +0300 Subject: [PATCH 2/2] Add "infer" to typescriptReserved --- syntax/typescript.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/typescript.vim b/syntax/typescript.vim index 5ae3722..4758a67 100644 --- a/syntax/typescript.vim +++ b/syntax/typescript.vim @@ -129,7 +129,7 @@ syntax keyword typescriptGlobalNodeObjects module exports global process __dirn syntax keyword typescriptExceptions try catch throw finally Error EvalError RangeError ReferenceError SyntaxError TypeError URIError -syntax keyword typescriptReserved constructor declare as interface module abstract enum int short export interface static byte extends long super char final native synchronized class float package throws goto private transient debugger implements protected volatile double import public type namespace from get set keyof +syntax keyword typescriptReserved constructor declare as interface module abstract enum int short export interface static byte extends long super char final native synchronized class float package throws goto private transient debugger implements protected volatile double import public type namespace from get set keyof infer "}}} "" typescript/DOM/HTML/CSS specified things"{{{