This commit is contained in:
Rafael Caricio 2014-09-06 18:03:51 +02:00
parent 6e4fec9218
commit a55f942895

View file

@ -59,22 +59,7 @@ module.exports = (function() {
}
function matchListDefinitions() {
var definitions = [],
currentDefinition = matchDefinition();
if (currentDefinition) {
definitions.push(currentDefinition);
while (scan(tokens.comma)) {
currentDefinition = matchDefinition();
if (currentDefinition) {
definitions.push(currentDefinition);
} else {
error('One extra comma');
}
}
}
return definitions;
return matchListing(matchDefinition);
}
function matchDefinition() {