comparison dmd/parse.c @ 92:70d6113eeb8c trunk

[svn r96] Updated to DMD 1.023. Regular bugfixes.
author lindquist
date Thu, 08 Nov 2007 19:13:28 +0100
parents 3cfcb944304e
children 0ab29b838084
comparison
equal deleted inserted replaced
91:3f949c6e2e9d 92:70d6113eeb8c
2246 case TOKrcurly: 2246 case TOKrcurly:
2247 if (--braces == 0) 2247 if (--braces == 0)
2248 break; 2248 break;
2249 continue; 2249 continue;
2250 2250
2251 case TOKeof:
2252 break;
2253
2251 default: 2254 default:
2252 continue; 2255 continue;
2253 } 2256 }
2254 break; 2257 break;
2255 } 2258 }
2284 comma = 2; 2287 comma = 2;
2285 continue; 2288 continue;
2286 2289
2287 case TOKrcurly: // allow trailing comma's 2290 case TOKrcurly: // allow trailing comma's
2288 nextToken(); 2291 nextToken();
2292 break;
2293
2294 case TOKeof:
2295 error("found EOF instead of initializer");
2289 break; 2296 break;
2290 2297
2291 default: 2298 default:
2292 value = parseInitializer(); 2299 value = parseInitializer();
2293 is->addInit(NULL, value); 2300 is->addInit(NULL, value);