[txmt-dev] Re: Grammar parser multiline match?
Michael Sheets
mummer at whitefalls.org
Tue Nov 5 19:12:35 UTC 2013
On Nov 5, 2013, at 8:07 AM, Per Persson <persquare at mac.com> 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?
No, it’s always functioned in this manner.
More information about the textmate-dev
mailing list