You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem comes from vim-javascript/syntax/javascript.vim @ line 17
syntaxiskeyword@,48-57,_,192-255,$
When reading html file, gvim also loads javascript.vim syntax file (I also want to know how this is done if someone can kindly teach me :) )
As syntax iskeyword does not include hyphen -, all html attributes which contain hyphen cannot be recognized as htmlArg but as htmlTag (This script can identify syntax highlighting).
Uh oh!
There was an error while loading. Please reload this page.
Environment: Windows 10 64bit, gvim8.0 64bit.
Here is the syntax highlighting:
The problem comes from
vim-javascript/syntax/javascript.vim @ line 17
When reading html file, gvim also loads javascript.vim syntax file (I also want to know how this is done if someone can kindly teach me :) )
As
syntax iskeyword
does not include hyphen-
, all html attributes which contain hyphen cannot be recognized ashtmlArg
but ashtmlTag
(This script can identify syntax highlighting).My workaround is to add to _vimrc:
Then highlighting is correct:
But I think it is better to be done cleanly in vim-javascript plugin.
The text was updated successfully, but these errors were encountered: