[TxMt] folding comment blocks
throw-away-1 at macromates.com
Wed Oct 5 14:10:52 UTC 2005
On 05/10/2005, at 16.03, Gavin Kistner wrote:
> As the lookahead assertion doesn't consume characters, I'm not sure
> why that fails...is it perhaps because each line is passed into the
> folding detector, with no context for the lines around it?
Yes -- the same is the case for the syntax highlight patterns.
If the patterns were allowed to match multiple lines, it would be
possible to craft patterns so that changing last line in the document
would affect syntax highlight or folding markers on the first line --
so very bad for performance.
More information about the textmate