-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not properly highlighting HTML attributes in (...) syntax #59
Comments
The native HTML highlighting uses 2 different colors. If you want to implement that for Haml, go for it. But that effort might be better expended on just fixing the HTML syntax highlighting to support HTML 5. |
Hmm, I added otree/html5.vim to my vimfiles, which, judging by its source code, should take care of all of this, but for some reason it doesn't. I tried opening a normal HTML file and Do you have any idea what could be wrong? I double-checked with |
You need to |
See othree/html5.vim#5 for a way to contribute a more promising solution. |
Wow, thank you for putting your time into this. Hmm, I still don't get why syn match htmlArg "\<\(data\(\-[a-z]\+\)\+\)\=\>" contained It shouldn't be dependend on the The solution that worked for me was adding an runtime! syntax/html/aria.vim
runtime! syntax/html/rdfa.vim
set iskeyword+=- I don't think it messes with the Ruby highlighting, only if |
I think I will submit a pull request to merge |
Because |
Aaaa, I get it. Thank you for all your help, I really have much deeper understanding of the problem now, and I can act by myself now. |
Most standard ones are properly highlighted, but arbitrary ones aren't. Is it possible to just highlight all the attributes the same, regardless of their name (like it is in native HTML tags)?
The text was updated successfully, but these errors were encountered: