This commit is contained in:
Hackerpilot 2014-04-24 15:21:02 -07:00
parent ae9ff77242
commit 57f05303b9
1 changed files with 5 additions and 1 deletions

View File

@ -6255,7 +6255,11 @@ protected:
bool isAssociativeArrayLiteral()
{
return hasMagicDelimiter!(tok!"[", tok!":")();
auto b = setBookmark();
scope(exit) goToBookmark(b);
advance();
Expression e = parseExpression();
return e !is null && currentIs(tok!":");
}
bool hasMagicDelimiter(alias L, alias T)()