Remove duplicate error message

This commit is contained in:
Fugiman
2016-01-19 02:04:17 -08:00
committed by Richard van Velzen
parent 1f75232062
commit 5e78f20f1c

View File

@@ -1414,8 +1414,10 @@ function parse($TEXT, options) {
tokenizer_S.next(); tokenizer_S.next();
next(); next();
segments.push(expression()); segments.push(expression());
if (!is("punc", "}")) if (!is("punc", "}")) {
token_error(tokenizer_S.token, "Unexpected token " + tokenizer_S.token.type + " «" + tokenizer_S.token.value + "»" + ", expected punc «}»"); // force error message
expect("}");
}
continue; continue;
} }
segment += ch; segment += ch;