Merge change 25859 into eclair

* changes:
  Improve error-handling when an expected token is missing.
This commit is contained in:
Android (Google) Code Review 2009-09-18 19:26:43 -04:00
commit 119dcd8400

View file

@ -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) {