Re: S05 (regex) Q:

2009-08-10 Thread Larry Wall
Modifiers like :ratchet are lexically scoped, and therefore extend into any embedded or , I think. These days if you find yourself saying "surrounding context", you should usually ask yourself whether you mean "lexical" or "dynamic", and that often indicates the direction I'll be leaning on under

Re: S05 (regex) Q:

2009-08-08 Thread Patrick R. Michaud
On Sat, Aug 08, 2009 at 05:45:40PM -0400, Austin Hastings wrote: > [...] > Specifically, is > token { ... } > going to match the same pattern as > rule { ... } > ?? > > I ask because (I just did it, and) with rules encouraging the liberal > use of whitespace, and implicitly generating <

S05 (regex) Q:

2009-08-08 Thread Austin Hastings
S05 mentions the magic pattern in two locations, but I cannot find a specification of the interaction between and the ratcheting {rule/token} status. Specifically, is token { ... } going to match the same pattern as rule { ... } ?? I ask because (I just did it, and) with rules enco