comparison src/main.d @ 826:d659f7aa055c

Fixed Lexer unittest.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sat, 07 Jun 2008 14:05:28 +0200
parents a8b3de006554
children 80eb3251e010
comparison
equal deleted inserted replaced
825:51edcd435b30 826:d659f7aa055c
343 cc.addVersionId("all"); 343 cc.addVersionId("all");
344 version(D2) 344 version(D2)
345 cc.addVersionId("D_Version2"); 345 cc.addVersionId("D_Version2");
346 foreach (versionId; GlobalSettings.versionIds) 346 foreach (versionId; GlobalSettings.versionIds)
347 if (Lexer.isValidUnreservedIdentifier(versionId)) 347 if (Lexer.isValidUnreservedIdentifier(versionId))
348 cc.versionIds[versionId] = true; 348 cc.addVersionId(versionId);
349 return cc; 349 return cc;
350 } 350 }
351 351
352 bool parseDebugOrVersion(string arg, CompilationContext context) 352 bool parseDebugOrVersion(string arg, CompilationContext context)
353 { 353 {
396 auto err = cast(Problem)info; 396 auto err = cast(Problem)info;
397 Stderr.formatln(errorFormat, err.filePath, err.loc, err.col, err.getMsg); 397 Stderr.formatln(errorFormat, err.filePath, err.loc, err.col, err.getMsg);
398 } 398 }
399 } 399 }
400 400
401 /// Prints a help message for command. 401 /// Prints the help message of a command.
402 void printHelp(char[] command) 402 void printHelp(char[] command)
403 { 403 {
404 char[] msg; 404 char[] msg;
405 switch (command) 405 switch (command)
406 { 406 {