Mercurial > projects > dil
diff trunk/src/dil/Module.d @ 510:dd3ce87b3569
Added module dil.Unicode.
Moved some functions from dil.Lexer to dil.Unicode.
Added isIdentifierString() to dil.Lexer.
Renamed isNonReservedIdentifier() to isReservedIdentifier().
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Thu, 13 Dec 2007 18:45:29 +0100 |
parents | fa63ef408790 |
children | 7cb97346bc6f |
line wrap: on
line diff
--- a/trunk/src/dil/Module.d Wed Dec 12 22:17:20 2007 +0200 +++ b/trunk/src/dil/Module.d Thu Dec 13 18:45:29 2007 +0100 @@ -58,7 +58,7 @@ { // Take base name of file path as module name. auto str = (new FilePath(filePath)).name(); - if (Lexer.isNonReservedIdentifier(str)) + if (!Lexer.isReservedIdentifier(str)) { this.moduleFQN = moduleName = str; }