mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-26 13:20:07 +03:00
Fix #65
This commit is contained in:
parent
77684566ec
commit
4cf3e1c85a
1 changed files with 3 additions and 3 deletions
|
@ -256,10 +256,10 @@ alias core.sys.posix.stdio.fileno fileno;
|
|||
* $(RULE assignExpression) ($(LITERAL ',') $(RULE assignExpression)?)*
|
||||
* ;)
|
||||
*/
|
||||
ArgumentList parseArgumentList(bool allowTrailingComma = false)
|
||||
ArgumentList parseArgumentList()
|
||||
{
|
||||
mixin(traceEnterAndExit!(__FUNCTION__));
|
||||
return parseCommaSeparatedRule!(ArgumentList, AssignExpression)(allowTrailingComma);
|
||||
return parseCommaSeparatedRule!(ArgumentList, AssignExpression)(true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -320,7 +320,7 @@ alias core.sys.posix.stdio.fileno fileno;
|
|||
auto node = new ArrayLiteral;
|
||||
if (expect(TokenType.lBracket) is null) return null;
|
||||
if (!currentIs(TokenType.rBracket))
|
||||
node.argumentList = parseArgumentList(true);
|
||||
node.argumentList = parseArgumentList();
|
||||
if (expect(TokenType.rBracket) is null) return null;
|
||||
return node;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue