parserlib actions are void

This commit is contained in:
tophf 2018-03-18 07:10:33 +03:00
parent 0a4f0663d0
commit 65905edec9

View File

@ -3889,8 +3889,11 @@ self.parserlib = (() => {
for (;; stream.skipComment()) {
const action = Parser.ACTIONS.supports.get(stream.peek());
if (action && action.call(this)) continue;
if (!this._ruleset()) break;
if (action) {
action.call(this);
} else if (!this._ruleset()) {
break;
}
}
stream.mustMatch(Tokens.RBRACE);