[TxMt] Re: possible format strings bug
Allan Odgaard
mailinglist at textmate.org
Sat Apr 5 07:20:48 UTC 2014
On 4 Apr 2014, at 23:31, Matt Neuburg wrote:
> […] Unfortunately one can't mix named groups with implicitly
> numbered groups, so it's going to be named groups all the way […]
Just to be sure I understand, the issue here is that if you use named
captures in the parent match, the $1-n variables are still created and
inherited.
So there is no way around using named captures for conditionals in the
format string, but in the parent rule, using named captures makes no
difference.
I made the variables inherited for maximum flexibility, but given this
issue, I have changed it so that $1-$n will not be inherited, where n ==
number of captures in the last regexp:
https://github.com/textmate/textmate/commit/6185cc17ab59c81993983dffc9eb82293738dc65
This means you can simplify the grammar after next build.
More information about the textmate
mailing list