From d9a80623e16d2670cd628f462ad7fe562a9509f2 Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 11 Jan 2022 21:18:37 +0300 Subject: [PATCH] parserlib: fix endless loop on incomplete tokens regressed in 048c2672 fixes #1381 --- js/csslint/parserlib.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/csslint/parserlib.js b/js/csslint/parserlib.js index 2bd75ada..55d6e0bd 100644 --- a/js/csslint/parserlib.js +++ b/js/csslint/parserlib.js @@ -4127,8 +4127,8 @@ self.parserlib = (() => { this.fire(event, property); if (consumeSemicolon) { while (stream.match(TT.semiS)) {/*NOP*/} + this._ws(); } - this._ws(); return true; } @@ -4392,7 +4392,7 @@ self.parserlib = (() => { readMargins && this._margin() || (tt && stream.unget(), this._declaration(true, Props)) || (next = stream.LT(1)).value === ';' || - this._ws(next, true)) { + this._ws(null, true)) { continue; } break;