[project @ 2002-04-24 11:17:53 by simonpj]
authorsimonpj <unknown>
Wed, 24 Apr 2002 11:17:53 +0000 (11:17 +0000)
committersimonpj <unknown>
Wed, 24 Apr 2002 11:17:53 +0000 (11:17 +0000)
"\Oxxx" and "\Xyyy" are not octal or hexadecimal escapes in Haskell 98,
and should not be lexed as such.

Text/Read/Lex.lhs

index e09f75b..6ad7ce0 100644 (file)
@@ -176,9 +176,7 @@ lexChar =
       do s <- look
          case s of
            'o':_ -> do get; return 8
-           'O':_ -> do get; return 8
            'x':_ -> do get; return 16
-           'X':_ -> do get; return 16
            _     -> do return 10
   
   lexCntrlChar =