From 9111ebcd2b4d85f5e2b6f7855c07ec02b0c6df29 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 7 Jan 2018 19:11:00 +0300 Subject: [PATCH] unget the unary token if got no term to finalize --- vendor-overwrites/csslint/parserlib.js | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor-overwrites/csslint/parserlib.js b/vendor-overwrites/csslint/parserlib.js index cc6fe2c1..34d0b734 100644 --- a/vendor-overwrites/csslint/parserlib.js +++ b/vendor-overwrites/csslint/parserlib.js @@ -4840,6 +4840,7 @@ self.parserlib = (() => { const unary = stream.match([Tokens.MINUS, Tokens.PLUS]) && stream._token; const finalize = (token, value) => { + if (!token && unary) stream.unget(); if (!token) return null; if (token instanceof SyntaxUnit) return token; if (unary) {