Changeset 10461 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
06/03/06 06:23:44 (2 years ago)
Author:
audreyt
Message:

* GHC 6.5-trunk now supports parsing UTF8 literals in strings,

whilst GHC 6.4 treated them as Latin1. This mean we cannot
use UTF8 literals "¥" in strings now and has to always write
"\xA5", until GHC 6.6's release.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r10248 r10461  
    200200        return rv 
    201201    where 
    202     aheadWord x  '=' = not $ x `elem` (decodeUTF8 "xY¥") 
     202    aheadWord x  '=' = not $ x `elem` "xY\xA5" -- ¥ 
    203203    aheadWord _  y   = not $ isWordAny y 
    204204    aheadSym '-' '>' = False -- XXX hardcode