[TxMt] Re: The use of \G in single line comments

Nathan Sobo nathan at github.com
Mon Oct 22 21:03:40 UTC 2012


I have a followup question:

How is \G defined in TextMate grammars?

I notice from the source code that \G anchors are replaced with a null string
if the start of the match isn't equal to `anchor`, but I'm having a hard time
following where and why `anchor` is updated during the progress of the parse.
How would you describe the meaning of `anchor`? Is it the end of the last
match, or something else?

Thanks!





More information about the textmate mailing list