changeset 634:14e99ce74d06

Fixed parsing of TemplateInstanceExpressions.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sun, 13 Jan 2008 19:26:12 +0100
parents 5fa1886d6aaf
children b2fc028d8b55
files trunk/src/dil/parser/Parser.d
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/dil/parser/Parser.d	Sat Jan 12 11:45:40 2008 +0100
+++ b/trunk/src/dil/parser/Parser.d	Sun Jan 13 19:26:12 2008 +0100
@@ -3171,7 +3171,8 @@
     auto begin = token;
     auto ident = requireIdentifier(MSG.ExpectedAnIdentifier);
     Expression e;
-    if (token.type == T.Not /+&& peekNext() == T.LParen+/)
+    // Peek for '(' to avoid matching: id !is id
+    if (token.type == T.Not && peekNext() == T.LParen)
     { // Identifier !( TemplateArguments )
       nT(); // Skip !.
       auto tparams = parseTemplateArguments();