]> git.sur5r.net Git - cc65/commitdiff
Made cc65's "Illegal escaped character" diagnostic show which code was escaped.
authorGreg King <gregdk@users.sf.net>
Tue, 21 Aug 2018 12:55:49 +0000 (08:55 -0400)
committerGreg King <gregdk@users.sf.net>
Tue, 21 Aug 2018 12:58:21 +0000 (08:58 -0400)
src/cc65/scanner.c

index 90c0f73f6773ad483a62989176c6126cf39073cb..8605f55a57d50ca0519096112639fe19901d2a3a 100644 (file)
@@ -347,8 +347,8 @@ static int ParseChar (void)
                     Error ("Octal character constant out of range");
                 break;
             default:
-                Error ("Illegal escaped character");
                 C = CurC;
+                Error ("Illegal escaped character: 0x%02X", CurC);
                 break;
         }
     } else {