Merge change 25859 into eclair
* changes: Improve error-handling when an expected token is missing.
This commit is contained in:
commit
119dcd8400
1 changed files with 1 additions and 2 deletions
|
|
@ -4537,10 +4537,9 @@ class Compiler : public ErrorSink {
|
|||
}
|
||||
|
||||
void skip(intptr_t c) {
|
||||
if (tok != c) {
|
||||
if (!accept(c)) {
|
||||
error("'%c' expected", c);
|
||||
}
|
||||
next();
|
||||
}
|
||||
|
||||
bool accept(intptr_t c) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue