vim-slim icon indicating copy to clipboard operation
vim-slim copied to clipboard

syntax highlight issue, variable in meta content

Open cj opened this issue 11 years ago • 3 comments

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

cj avatar Feb 28 '14 17:02 cj

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

cj avatar Feb 28 '14 17:02 cj

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

cj avatar Feb 28 '14 19:02 cj

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).

chikamichi avatar Mar 14 '14 19:03 chikamichi