Changeset 14422 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
10/22/06 01:36:34 (2 years ago)
Author:
audreyt
Message:

* Pugs.Lexer: Avoid the annoying and not helpful "expecting comment"

in parse errors.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r14105 r14422  
    488488comment :: RuleParser () 
    489489comment = do 
    490     char '#' <?> "comment" 
     490    char '#' <?> "" 
    491491    pos <- getPosition 
    492492    if sourceColumn pos /= 2 then multiLineComment <|> skipToLineEnd else do