Mercurial > projects > ldc
comparison dmd2/lexer.c @ 1526:54b3c1394d62
Merged dmdfe 2.031.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Tue, 07 Jul 2009 02:26:11 +0100 |
parents | a1666b613c15 |
children | e4f7b5d9c68a |
comparison
equal
deleted
inserted
replaced
1525:d28cd7c45267 | 1526:54b3c1394d62 |
---|---|
1276 { error("escape hex sequence has %d hex digits instead of %d", n, ndigits); | 1276 { error("escape hex sequence has %d hex digits instead of %d", n, ndigits); |
1277 break; | 1277 break; |
1278 } | 1278 } |
1279 } | 1279 } |
1280 if (ndigits != 2 && !utf_isValidDchar(v)) | 1280 if (ndigits != 2 && !utf_isValidDchar(v)) |
1281 error("invalid UTF character \\U%08x", v); | 1281 { error("invalid UTF character \\U%08x", v); |
1282 v = '?'; // recover with valid UTF character | |
1283 } | |
1282 c = v; | 1284 c = v; |
1283 } | 1285 } |
1284 else | 1286 else |
1285 error("undefined escape hex sequence \\%c\n",c); | 1287 error("undefined escape hex sequence \\%c\n",c); |
1286 break; | 1288 break; |