Add missing scanner.expectDone() calls.

This commit is contained in:
Natalie Weizenbaum 2016-10-30 14:54:09 -07:00
parent c9bbcbda3a
commit 845c1b8d8d
3 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@ class AtRootQueryParser extends Parser {
atRules.add(identifier().toLowerCase()); atRules.add(identifier().toLowerCase());
whitespace(); whitespace();
} while (lookingAtIdentifier()); } while (lookingAtIdentifier());
scanner.expectDone();
return new AtRootQuery(include, atRules); return new AtRootQuery(include, atRules);
}); });

View File

@ -28,6 +28,7 @@ class KeyframeSelectorParser extends Parser {
} }
whitespace(); whitespace();
} while (scanner.scanChar($comma)); } while (scanner.scanChar($comma));
scanner.expectDone();
return selectors; return selectors;
}); });

View File

@ -19,6 +19,7 @@ class MediaQueryParser extends Parser {
whitespace(); whitespace();
queries.add(_mediaQuery()); queries.add(_mediaQuery());
} while (scanner.scanChar($comma)); } while (scanner.scanChar($comma));
scanner.expectDone();
return queries; return queries;
}); });
} }