Remove duplicate error message
This commit is contained in:
committed by
Richard van Velzen
parent
1f75232062
commit
5e78f20f1c
@@ -1414,8 +1414,10 @@ function parse($TEXT, options) {
|
||||
tokenizer_S.next();
|
||||
next();
|
||||
segments.push(expression());
|
||||
if (!is("punc", "}"))
|
||||
token_error(tokenizer_S.token, "Unexpected token " + tokenizer_S.token.type + " «" + tokenizer_S.token.value + "»" + ", expected punc «}»");
|
||||
if (!is("punc", "}")) {
|
||||
// force error message
|
||||
expect("}");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
segment += ch;
|
||||
|
||||
Reference in New Issue
Block a user