Changeset 10841 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
06/23/06 01:53:05 (2 years ago)
Author:
audreyt
Message:

* Pugs::Lexer - make these two equivalent:

my Foo $x;
my ::Foo $x;

previously the second one was assigning ::::Foo to $x.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r10649 r10841  
    398398ruleType = literalRule "context" $ do 
    399399    -- Valid type names: Foo, Bar::Baz, ::Grtz, ::?CLASS, but not :Foo 
    400     lead    <- count 1 wordAlpha <|> string "::" 
     400    lead    <- count 1 wordAlpha <|> (string "::" >> return []) 
    401401    rest    <- many (wordAny <|> oneOf ":&|?") 
    402402    return (lead ++ rest)