Skip to content

Commit 304f97f

Browse files
clasonrhysd
authored andcommitted
vim-patch:5e45715: runtime(typescript): update outdated syntax files
fixes: vim/vim#14721 fixes: HerringtonDarkholme/yats.vim#277 closes: vim/vim#14840 vim/vim@5e45715 Co-authored-by: rhysd <[email protected]>
1 parent dcd5a72 commit 304f97f

File tree

4 files changed

+121
-92
lines changed

4 files changed

+121
-92
lines changed

runtime/doc/syntax.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3289,6 +3289,19 @@ set "tf_minlines" to the value you desire. Example: >
32893289
32903290
:let tf_minlines = your choice
32913291
<
3292+
TYPESCRIPT *typescript.vim* *ft-typescript-syntax*
3293+
*typescriptreact.vim* *ft-typescriptreact-syntax*
3294+
3295+
There is one option to control the TypeScript syntax highlighting.
3296+
3297+
*g:typescript_host_keyword*
3298+
When this variable is set to 1, host-specific APIs such as `addEventListener`
3299+
are highlighted. To disable set it to zero in your .vimrc: >
3300+
3301+
let g:typescript_host_keyword = 0
3302+
<
3303+
The default value is 1.
3304+
32923305
VIM *vim.vim* *ft-vim-syntax*
32933306
*g:vimsyn_minlines* *g:vimsyn_maxlines*
32943307
There is a trade-off between more accurate syntax highlighting versus screen

0 commit comments

Comments
 (0)