diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-01-25 16:56:10 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-01-25 16:56:10 +0100 |
commit | 35ea4d2b9072594b6c0ccf87bde7978ed9f94755 (patch) | |
tree | e829bad239fea3150cd0963933f3e33214f069b4 /syntax/basic/keyword.vim | |
parent | 967486dd716de860db3ef091a9dcb9cb65023534 (diff) | |
download | vim-polyglot-4.2.1.tar.gz vim-polyglot-4.2.1.zip |
Updatev4.2.1
Diffstat (limited to 'syntax/basic/keyword.vim')
-rw-r--r-- | syntax/basic/keyword.vim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/syntax/basic/keyword.vim b/syntax/basic/keyword.vim index ff1e169a..11639c43 100644 --- a/syntax/basic/keyword.vim +++ b/syntax/basic/keyword.vim @@ -1,8 +1,17 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 "Import -syntax keyword typescriptImport from as import +syntax keyword typescriptImport from as +syntax keyword typescriptImport import + \ nextgroup=typescriptImportType + \ skipwhite +syntax keyword typescriptImportType type + \ contained syntax keyword typescriptExport export + \ nextgroup=typescriptExportType + \ skipwhite +syntax match typescriptExportType /\<type\s*{\@=/ + \ contained skipwhite skipempty skipnl syntax keyword typescriptModule namespace module "this |