From 0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 12 Nov 2019 21:56:06 +0100 Subject: Update --- syntax/basic/type.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'syntax/basic') diff --git a/syntax/basic/type.vim b/syntax/basic/type.vim index bd1bdd1a..af2b535f 100644 --- a/syntax/basic/type.vim +++ b/syntax/basic/type.vim @@ -52,7 +52,8 @@ syntax cluster typescriptPrimaryType contains= \ typescriptTupleType, \ typescriptTypeQuery, \ typescriptStringLiteralType, - \ typescriptReadonlyArrayKeyword + \ typescriptReadonlyArrayKeyword, + \ typescriptAssertType syntax region typescriptStringLiteralType contained \ start=/\z(["']\)/ skip=/\\\\\|\\\z1\|\\\n/ end=/\z1\|$/ @@ -130,6 +131,10 @@ syntax keyword typescriptTypeQuery typeof keyof \ nextgroup=typescriptTypeReference \ contained skipwhite skipnl +syntax keyword typescriptAssertType asserts + \ nextgroup=typescriptTypeReference + \ contained skipwhite skipnl + syntax cluster typescriptCallSignature contains=typescriptGenericCall,typescriptCall syntax region typescriptGenericCall matchgroup=typescriptTypeBrackets \ start=// -- cgit v1.2.3