Changeset 6187 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
08/11/05 12:09:58 (3 years ago)
Author:
autrijus
Message:

* Allow lowercase and underscore for type names, eg:

sub f (foo $x) { ... }

Reported by jql.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r6067 r6187  
    302302ruleType = literalRule "context" $ do 
    303303    -- Valid type names: Foo, Bar::Baz, ::Grtz, ::?CLASS 
    304     lead    <- upper <|> char ':' 
     304    lead    <- wordAlpha <|> char ':' 
    305305    rest    <- many (wordAny <|> oneOf ":&|?") 
    306306    return (lead:rest)