Changeset 6187

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:
2 modified

Legend:

Unmodified
Added
Removed
  • AUTHORS

    r6004 r6187  
    1616Andrew Savige                    (ASAVIGE)    
    1717Anton "tobez" Berezin            (GRUBER)     
     18Ashley "jql" Winters             (AWIN) 
    1819Autrijus Tang                    (AUTRIJUS)  唐宗漢 
    1920Benjamin "integral" Smith        (BSMITH)     
  • 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)