Skip to content

Commit

Permalink
add a configuration flag to turn off host keyword highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme committed Oct 5, 2018
1 parent 2802373 commit f054d56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -16,6 +16,10 @@ Key differences:
* Syntax fold. Fold long code block, semantically!
* Remove old, unused syntax definitions.

Config
----
`let g:yats_host_keyword = 1`: configure yats to highlight host specific keywords like `addEventListener`. Default is 1. Set it 0 to turn off highlighting.

Credits
-------

Expand Down
4 changes: 3 additions & 1 deletion syntax/common.vim
Expand Up @@ -30,7 +30,9 @@ runtime syntax/basic/doc.vim
runtime syntax/basic/type.vim

" extension
runtime syntax/yats.vim
if get(g:, 'yats_host_keyword', 1)
runtime syntax/yats.vim
endif

" patch
runtime syntax/basic/patch.vim
Expand Down

0 comments on commit f054d56

Please sign in to comment.