diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-05-24 19:09:31 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-05-25 09:46:33 +0200 |
commit | b43244adafa0f4d86409d1101754d5e23782c158 (patch) | |
tree | 27a5773990e2730a989cdd1cd0a6af3e3d9c0c21 /runtime/doc/syntax.txt | |
parent | 4c7fd323ec40de2c0884b2bd290d7470cda0826d (diff) | |
download | rneovim-b43244adafa0f4d86409d1101754d5e23782c158.tar.gz rneovim-b43244adafa0f4d86409d1101754d5e23782c158.tar.bz2 rneovim-b43244adafa0f4d86409d1101754d5e23782c158.zip |
vim-patch:5e45715: runtime(typescript): update outdated syntax files
fixes: vim/vim#14721
fixes: HerringtonDarkholme/yats.vim#277
closes: vim/vim#14840
https://github.com/vim/vim/commit/5e4571508480c8f51748e49fb05c1891db0cb803
Co-authored-by: rhysd <lin90162@yahoo.co.jp>
Diffstat (limited to 'runtime/doc/syntax.txt')
-rw-r--r-- | runtime/doc/syntax.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 7893822a66..06d7ad8f7e 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -3289,6 +3289,19 @@ set "tf_minlines" to the value you desire. Example: > :let tf_minlines = your choice < +TYPESCRIPT *typescript.vim* *ft-typescript-syntax* + *typescriptreact.vim* *ft-typescriptreact-syntax* + +There is one option to control the TypeScript syntax highlighting. + + *g:typescript_host_keyword* +When this variable is set to 1, host-specific APIs such as `addEventListener` +are highlighted. To disable set it to zero in your .vimrc: > + + let g:typescript_host_keyword = 0 +< +The default value is 1. + VIM *vim.vim* *ft-vim-syntax* *g:vimsyn_minlines* *g:vimsyn_maxlines* There is a trade-off between more accurate syntax highlighting versus screen |