Skip to content

Commit

Permalink
vim-patch:5e45715: runtime(typescript): update outdated syntax files
Browse files Browse the repository at this point in the history
fixes: vim/vim#14721
fixes: HerringtonDarkholme/yats.vim#277
closes: vim/vim#14840

vim/vim@5e45715

Co-authored-by: rhysd <lin90162@yahoo.co.jp>
  • Loading branch information
clason and rhysd committed May 24, 2024
1 parent 8af236a commit 7f7f440
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 92 deletions.
13 changes: 13 additions & 0 deletions runtime/doc/syntax.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 7f7f440

Please sign in to comment.