Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 119dcd84 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 25859 into eclair

* changes:
  Improve error-handling when an expected token is missing.
parents bb6f68c6 b13d4e85
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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) {