[txmt-dev] Re: Grammar parser multiline match?

2013-11-05 Thread Michael Sheets
On Nov 5, 2013, at 8:07 AM, Per Persson  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.
___
textmate-dev mailing list
textmate-dev@lists.macromates.com
http://lists.macromates.com/listinfo/textmate-dev


[txmt-dev] Re: Grammar parser multiline match?

2013-11-05 Thread Per Persson
On Nov 05, 2013, at 12:08 PM, Michael Sheets  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___
textmate-dev mailing list
textmate-dev@lists.macromates.com
http://lists.macromates.com/listinfo/textmate-dev

[txmt-dev] Re: Grammar parser multiline match?

2013-11-05 Thread Michael Sheets
On Nov 4, 2013, at 4:11 PM, Per Persson  wrote:

> when working with Markdown, I prefer using Setext title (===) and subheading 
> (---) for level 1 and 2 headings respectively.
> However, Setext headings have some quirks in that they 
>   1) show up as === or --- in the symbol popup rather than the heading 
> text, and 
>   2) the heading text doesn't have a distinct scope assigned

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.

* A notable exception being the firstLineMatch.
___
textmate-dev mailing list
textmate-dev@lists.macromates.com
http://lists.macromates.com/listinfo/textmate-dev