On Feb 8, 2008, at 4:21 PM, Michael Sheets wrote:
I don't know where allan's stance is, but my view is that this should be a TextMate level feature, built into the editor and completely separated from the grammars. It would then work everywhere, even when an entire line is matched. If it was tied into the folding perhaps even allow better coloring as you could the entire clock for a color, something like XCode.
I totally agree that this sort of thing should be a TextMate level feature. I hate repeating the same code in multiple grammars.
But, if a feature is possible to implement with the current system, and the pros outweigh the cons, then I'd say let's do it.
On this feature in particular, it's extremely handy to have the leading space scopes available in HTML, Javascript, Ruby and almost every other language on earth. Mostly just for theme support.
But what are the downsides? Adding too many irrelevant scopes to the document. When converting the scopes to HTML you get a giant glob of carp at the beginning of every line. That could be averted with a simple blacklist of scopes that should be ignored from the conversion process.
Other than that, what's other downsides are there?
—Thomas Aylott – subtleGradient—