diff --git a/libacc/acc.cpp b/libacc/acc.cpp index 436f80697..6d9213c74 100644 --- a/libacc/acc.cpp +++ b/libacc/acc.cpp @@ -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) {