[TxMt] Re: is it possible to use a capture in another match in language grammars?

Allan Odgaard mailinglist at textmate.org
Thu Dec 27 01:16:24 UTC 2012


On Oct 18, 2012, at 11:14 AM, Chris Knight <cpk.stealth at gmail.com> wrote:

> […] I want to do is use the capture in another match statement to find all references to the same labels when they are being called.

Sorry, this is not possible.

In your example you branch forward to the label (before it’s declared), so there would be no way to achieve your desired goal (of highlighting known labels) without a multi-pass parser (which the TextMate syntax highlighter is certainly not).



More information about the textmate mailing list