Mercurial > projects > dil
changeset 320:0ce14640eb04
- Fix in parseImportDeclaration(): rewrote while loop and removed a call to nT().
author | aziz |
---|---|
date | Sat, 18 Aug 2007 21:37:04 +0000 |
parents | 83f1f9a4f248 |
children | ae7f48182cb1 |
files | trunk/src/Parser.d |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/Parser.d Fri Aug 17 12:26:01 2007 +0000 +++ b/trunk/src/Parser.d Sat Aug 18 21:37:04 2007 +0000 @@ -798,7 +798,7 @@ // BindAlias = BindName(, BindAlias = BindName)*; // BindName(, BindName)*; Token* bindName, bindAlias; - while (1) + do { nT(); bindAlias = requireId(); @@ -817,11 +817,7 @@ // Push identifiers. bindNames ~= bindName; bindAliases ~= bindAlias; - - if (token.type != T.Comma) - break; - nT(); - } + } while (token.type == T.Comma) } require(T.Semicolon);