[TxMt] Re: The use of \G in single line comments
David Howden
dhowden at gmail.com
Mon Oct 22 22:54:19 UTC 2012
Have a read at this: http://www.regular-expressions.info/continue.html
(and then this too:
http://manual.macromates.com/en/regular_expressions#regular_expressions).
On 23 October 2012 08:03, Nathan Sobo <nathan at github.com> wrote:
> 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!
>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list