othree / yajs.vim

YAJS.vim: Yet Another JavaScript Syntax for Vim
http://www.vim.org/scripts/script.php?script_id=4974
Vim License
688 stars 41 forks source link

Break data-* attribute syntax in HTML files #160

Closed ylhuang0423 closed 6 years ago

ylhuang0423 commented 6 years ago

I used othree/yajs.vim with othree/html5.vim. The data-* attributes syntax are incorrect, since it is correct without othree/yajs.vim.

2018-02-23 5 57 21
ylhuang0423 commented 6 years ago

I found that the problem also occurs in not only *.html files but also other filetypes which include html and javascript syntax (such as *.vue) at the same time. Maybe we can modify syn iskeyword @,48-57,_,128-167,224-235,$ to set iskeyword=@,48-57,_,128-167,224-235,$, so yajs.vim won't affect the iskeyword of other filetypes in the same file.