summaryrefslogtreecommitdiffstats
path: root/syntax/basic
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-11-12 21:56:06 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-11-12 21:56:06 +0100
commit0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2 (patch)
tree5b5e45e53e9ecafa6c182c8ce7e0266e34388e4d /syntax/basic
parent4e95df7c7e12cb76e781f2dacf1c07f8984cce58 (diff)
downloadvim-polyglot-0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2.tar.gz
vim-polyglot-0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2.zip
Update
Diffstat (limited to 'syntax/basic')
-rw-r--r--syntax/basic/type.vim7
1 files changed, 6 insertions, 1 deletions
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=/</ end=/>/