Skip to content
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

syntax highlight issue, variable in meta content #44

Open
cj opened this issue Feb 28, 2014 · 3 comments
Open

syntax highlight issue, variable in meta content #44

cj opened this issue Feb 28, 2014 · 3 comments

Comments

@cj
Copy link

cj commented Feb 28, 2014

If you take a look at my screenshot you'll see after the variable the highlighting stops https://db.tt/QhwYdfff

@cj
Copy link
Author

cj commented Feb 28, 2014

It also fails on things like https://db.tt/C2kQ2lFu

@cj
Copy link
Author

cj commented Feb 28, 2014

This li content should also be green https://db.tt/onTaZmMK

@chikamichi
Copy link

There is indeed an issue with highlighting of sentences which do not include attributes. Most of the time, attributes come as pairs of key=value, so this could be easily fixed…

But not all attributes are to be written as pairs (there is an alternative syntax for some of them known as attribute minimization, for instance <input disabled /> instead of <input disabled="disabled" />). Those attributes are well known, though, so maybe vim-slim could handle a white-list of them? A Configurable list, that is, so that one can customize it.

Also, attributes are to be written in lowercase, so vim-slim could automatically detect "missing" attributes (like in the screenshot above, where sentences start with a capitalized letter).

@ghost ghost deleted a comment Jul 16, 2019
@ghost ghost deleted a comment Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants