Mercurial > projects > dil
diff trunk/src/dil/parser/Parser.d @ 634:14e99ce74d06
Fixed parsing of TemplateInstanceExpressions.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sun, 13 Jan 2008 19:26:12 +0100 |
parents | 20dddcc54621 |
children | fe66cecb6ec9 |
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();