diff src/dil/Messages.d @ 814:49e32b5bc161

Added isValidUnreservedIdentifier() to Lexer. Added the msg InvalidModuleName.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Wed, 12 Mar 2008 17:01:27 +0100
parents 1abffc396594
children e6fb7ed87d3a
line wrap: on
line diff
--- a/src/dil/Messages.d	Wed Mar 12 00:49:17 2008 +0100
+++ b/src/dil/Messages.d	Wed Mar 12 17:01:27 2008 +0100
@@ -115,6 +115,7 @@
   auto UnterminatedDDocMacro = "DDoc macro '{}' has no closing ')'";
   // Lexer messages:
   auto InvalidOctalEscapeSequence = "value of octal escape sequence is greater than 0xFF: '{}'";
+  auto InvalidModuleName = "the file name '{}' can't be used a module name; it's an invalid or reserved D identifier.";
   // Parser messages:
   auto InvalidUTF8SequenceInString = "invalid UTF-8 sequence in string literal: '{0}'";
   auto ModuleDeclarationNotFirst = "a module declaration is only allowed as the first declaration in a file";