Closed JulesWang closed 9 years ago
Sorry for the wait, i've had 2 busy weeks and missed your post.
The issue, if I can remember well, can be reproduced simply removing the override from line 19:
syn region lessDefinition matchgroup=cssBraces start="{" end="}" contains=TOP,cssTagName,cssDeprecated
For what it concerns the submission of the Less syntax file to Bram, i would be more than happy to be the maintainer.
Still could not reproduce it.
Anyway, let's work together to make the less syntax file better.
The first thing for you is adding a header(your email and other useful info) in the less syntax file, then we may fix some bugs and add more features.
I have added some infos to the header of the syntax files, plus added a branch to test the issue with the incorrect syntax highlighting.
I have added a new folder test with a less file which should be enough to verify the issue.
The problem manifests itself on the new branch issue#4
Have you tried it with the latest css.vim?
Yes I have and the syntax highlight on the branch issue#4 is still wrong on one line declarations as
span { font-size: 30px; }
Of course on the master branch everything is working correctly.
Ok, I've got the code, "syn region lessDefinition matchgroup=cssBraces start="{" end="}" contains=TOP" and reproduced the bug.
It is more tricky than I thought.
I have submitted a commit to address this issue.
https://github.com/JulesWang/css.vim/commit/33ab453e1759323b469957e3323eea3d772386dd
Yep you got it right, nice.
Now i believe i should add as a mandatory dependency your updated CSS syntax file in the readme before merging the branch.
Yes, indeed. As you have confirmed the fix, this issue will be closed.
I see you fixed a issue by overriding cssTagNames and cssDeprecated.
How can I reproduce this issue? Is this issue still there without the workaround?
Besides, I'm planing to submit a less syntax file to Bram, would you like to be the maintainer?