From ca3633b8960932a46da3b43af2d6937b4d1cfcbc Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 14 Jul 2020 23:21:47 +0300 Subject: [PATCH] fix column combinator detection (#994) --- vendor-overwrites/csslint/parserlib.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vendor-overwrites/csslint/parserlib.js b/vendor-overwrites/csslint/parserlib.js index 3a4f5d45..3bbcad0a 100644 --- a/vendor-overwrites/csslint/parserlib.js +++ b/vendor-overwrites/csslint/parserlib.js @@ -2953,8 +2953,10 @@ self.parserlib = (() => { case '$': case '*': return ( - reader.peek() === '=' ? this.comparisonToken(c, pos) : - reader.readMatch('|') ? this.createToken(Tokens.COLUMN, '||', pos) : + reader.peek() === '=' ? + this.comparisonToken(c, pos) : + c === '|' && reader.readMatch('|') ? + this.createToken(Tokens.COLUMN, '||', pos) : this.charToken(c, pos) ); /*