Skip to content

Commit

Permalink
warn if missing } at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed May 19, 2024
1 parent ff0a425 commit 1ad20e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/csslint/parserlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -1505,8 +1505,8 @@
const star = inStyle && this.options.starHack && STAR;
this._stack.push(start);
let ex, child;
let prevTok;
for (let tok, ti, fn; (ti = (tok = stream.get(UVAR, 0)).id) && ti !== RBRACE; ex = null) {
for (let prevTok, tok, ti, fn; (ti = (tok = stream.get(UVAR, false)).id) !== RBRACE;) {
if (!ti) stream._failure('}');
if (ti === SEMICOLON || ti === UVAR && (child = 1)) {
continue;
}
Expand Down

0 comments on commit 1ad20e2

Please sign in to comment.