[txmt-dev] Re: Grammar parser multiline match?
Per Persson
persquare at mac.com
Tue Nov 5 14:07:33 UTC 2013
On Nov 05, 2013, at 12:08 PM, Michael Sheets <mummer at whitefalls.org> wrote:
Matches in a grammar (and in bundle items in general*) can only target a single line, no multi-line matches. This is done for performance reasons as if you could target multiple lines it would require significant re-parsing with every keystroke. This is the reason you see the slightly odd scoping of the ‘setext’ style headers.
OK, thanks for confirming that. I suspected performance was at issue here. Still, the situation still makes me uneasy.
Was there ever a multiline version of the parser that I could check out and play with?
/Per
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate-dev/attachments/20131105/94a44625/attachment.html>
More information about the textmate-dev
mailing list