Closed ghost closed 12 years ago
That would be problematic. Why don't you just use https://github.com/cloudhead/less.js?
There is no way with the Less parser to find the character index in the CSS that coresponds to the parsed value.
-11111
I see. Well, I don't have plans to make CSSOM parse Less or any other CSS preprocessor.
No problem, was worth a shot.
It seems to be a bit of a mission if you need a parser that keeps track of where the various tokens are in the original css... I wonder how Espresso etc. on OSX do it.
Is there a way to extend functionality for things like nested rules in Less etc?