Changeset 12264 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
08/15/06 18:50:08 (2 years ago)
Author:
audreyt
Message:

* Pugs.Lexer: improve the \123 warning a bit by mentioning

\d123 and \o123 as disambiguators

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r12261 r12264  
    279279    codes <- choice 
    280280        [ many1 digit >>= \ds -> do 
    281             trace ("Warning: Escape sequence \\" ++ ds ++ " is invalid; write \\d" ++ ds ++ " instead") $ 
    282                 return [read ds] 
     281            trace ("Warning: \\" ++ ds ++ " interpreted as decimal \\d" ++ ds ++ "; write \\o" ++ ds ++ " for octal digits") $ return [read ds] 
    283282        , based 'o'  8 octDigit 
    284283        , based 'x' 16 hexDigit