From 79c6f3e57806debf56b5908ac372bf82c2a5c226 Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 29 Aug 2017 19:10:30 +0300 Subject: [PATCH] csslint: support var() in compound properties --- vendor-overwrites/csslint/csslint-worker.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vendor-overwrites/csslint/csslint-worker.js b/vendor-overwrites/csslint/csslint-worker.js index 2efedcfc..a05d1297 100644 --- a/vendor-overwrites/csslint/csslint-worker.js +++ b/vendor-overwrites/csslint/csslint-worker.js @@ -5911,13 +5911,17 @@ var Validation = module.exports = { if (!result) { if (expression.hasNext() && !expression.isFirst()) { part = expression.peek(); - throw new ValidationError("Expected end of value but found '" + part + "'.", part.line, part.col); + if (part.name !== 'var' || part.type !== 'function') { + throw new ValidationError("Expected end of value but found '" + part + "'.", part.line, part.col); + } } else { throw new ValidationError("Expected (" + ValidationTypes.describe(types) + ") but found '" + value + "'.", value.line, value.col); } } else if (expression.hasNext()) { part = expression.next(); - throw new ValidationError("Expected end of value but found '" + part + "'.", part.line, part.col); + if (part.name !== 'var' || part.type !== 'function') { + throw new ValidationError("Expected end of value but found '" + part + "'.", part.line, part.col); + } } }