On Mon, Feb 7, 2011 at 3:23 PM, Luke Kanies <[email protected]> wrote:
> On Feb 7, 2011, at 3:11 PM, henrik lindberg wrote:
>
> > I noticed that the regexp for dollar variable in the lexer uses this
> > regexp - %r{\$(\w*::)*\w+}
> > which as I understand it would make a variable called $::::::::a
> > valid, is this an oversight in the lexer, or is there some meaning
> > attached to a sequence of 'unnamed scopes' ?
>
> This is an oversight in the lexer, IMO.
>
Yes. That should probably be: %r{\$(::)?(\w+::)*\w+} (and likewise for the
no "$" case a few lines down). Note that the fact that it makes it through
the lexer doesn't make it valid, just (I believe) changes the point at which
it's caught.
-- M
-----------------------------------------------------------
When in trouble or in doubt, run in circles,
scream and shout. -- 1920's parody of the
maritime general prudential rule
------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.