From 5a4e1290d3bd2076b2b93ef3ad2df74c293045b6 Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 14 Nov 2017 08:51:06 +0300 Subject: [PATCH] csslint: fire "enddocument" on } fixes #235 --- vendor-overwrites/csslint/csslint-worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vendor-overwrites/csslint/csslint-worker.js b/vendor-overwrites/csslint/csslint-worker.js index 2c3584c2..535c9570 100644 --- a/vendor-overwrites/csslint/csslint-worker.js +++ b/vendor-overwrites/csslint/csslint-worker.js @@ -1717,7 +1717,6 @@ Parser.prototype = function() { tokenStream.mustMatch(Tokens.RBRACE); token = tokenStream.token(); - this._readWhitespace(); this.fire({ type: "enddocument", @@ -1726,6 +1725,8 @@ Parser.prototype = function() { line: token.startLine, col: token.startCol }); + + this._readWhitespace(); }, _document_function: function() {