comparison dmd/lexer.c @ 1587:def7a1d494fd

Merge DMD 1.051
author Christian Kamm <kamm incasoftware de>
date Fri, 06 Nov 2009 23:58:01 +0100
parents 5f6f0929ee4c
children eae495e6ae8d
comparison
equal deleted inserted replaced
1586:7f728c52e63c 1587:def7a1d494fd
1264 { error("escape hex sequence has %d hex digits instead of %d", n, ndigits); 1264 { error("escape hex sequence has %d hex digits instead of %d", n, ndigits);
1265 break; 1265 break;
1266 } 1266 }
1267 } 1267 }
1268 if (ndigits != 2 && !utf_isValidDchar(v)) 1268 if (ndigits != 2 && !utf_isValidDchar(v))
1269 error("invalid UTF character \\U%08x", v); 1269 { error("invalid UTF character \\U%08x", v);
1270 v = '?'; // recover with valid UTF character
1271 }
1270 c = v; 1272 c = v;
1271 } 1273 }
1272 else 1274 else
1273 error("undefined escape hex sequence \\%c\n",c); 1275 error("undefined escape hex sequence \\%c\n",c);
1274 break; 1276 break;
3069 3071
3070 Token::tochars[TOKorass] = "|="; 3072 Token::tochars[TOKorass] = "|=";
3071 Token::tochars[TOKidentifier] = "identifier"; 3073 Token::tochars[TOKidentifier] = "identifier";
3072 3074
3073 // For debugging 3075 // For debugging
3076 Token::tochars[TOKerror] = "error";
3074 Token::tochars[TOKdotexp] = "dotexp"; 3077 Token::tochars[TOKdotexp] = "dotexp";
3075 Token::tochars[TOKdotti] = "dotti"; 3078 Token::tochars[TOKdotti] = "dotti";
3076 Token::tochars[TOKdotvar] = "dotvar"; 3079 Token::tochars[TOKdotvar] = "dotvar";
3077 Token::tochars[TOKdottype] = "dottype"; 3080 Token::tochars[TOKdottype] = "dottype";
3078 Token::tochars[TOKsymoff] = "symoff"; 3081 Token::tochars[TOKsymoff] = "symoff";