danro/LESS-sublime

Highlighting seems broken

ohnosharks opened this issue · 6 comments

screen shot 2018-01-08 at 14 54 09

I'm on Sublime Text 3, build 3143, on Mac.
I've tried removing and reinstalling.

and what's broken about it exactly? what does a CSS file look like in your setup?

I meant that the various selectors are just white, or inconsistent, like the &. in the first screenshot. Double-slash comments are not greyed out.

The compiled CSS file looks like this, and so have LESS files until today:
screen shot 2018-01-08 at 16 44 38

Sorry for not including details. Hope I'm not totally missing something here.

What is the syntax reported in the bottom right corner of SublimeText?

Also, if possible can you share your full .less file?

Oh, looking over the file now I figured out what broke it.
It was an old@import url(http://fonts.googleapis.com/css?family=Roboto:400,100,300,500); not having the URL wrapped in quotes, interpreting the http:// as a comment.
I guess that wasn't an issue before an update? Sorry for the inconvenience.

I think actually the spec doesn't require quotes around a URL. I'll look into it.

Thanks! I think you're right.

Seems to fix it for me, except pseudo-selectors are still not picked up, even in an otherwise empty file. (Reported syntax by Sublime is Less)
screen shot 2018-01-08 at 17 14 15