Mercurial > projects > dang
diff parser/Parser.d @ 183:8ea749b7da91
Fixed a few errors so that two more tests passes. Also, now you only need a type in a function param.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Fri, 25 Jul 2008 10:59:16 +0200 |
parents | dc9bf56b7ace |
children | 7b274cfdc1dc |
line wrap: on
line diff
--- a/parser/Parser.d Fri Jul 25 01:40:08 2008 +0200 +++ b/parser/Parser.d Fri Jul 25 10:59:16 2008 +0200 @@ -167,8 +167,9 @@ messages.report(UnexpectedLinkType, t.location); } - require(Tok.CloseParentheses); - + if (!isa(Tok.CloseParentheses)) + messages.report(UnexpectedTokSingle, peek.location); + return e; }