From 09cf2da870f712e0b9f8767a33a8cf61671bd614 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pietrzak Date: Fri, 26 Feb 2016 17:05:34 +0100 Subject: [PATCH] add error when not all of rules was processed --- lib/parse/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/parse/index.js b/lib/parse/index.js index 053f0596..b8e008da 100644 --- a/lib/parse/index.js +++ b/lib/parse/index.js @@ -79,6 +79,9 @@ module.exports = function(css, options){ function stylesheet() { var rulesList = rules(); + if (css) { + error('Parsing ended before all rules could be processed'); + } return { type: 'stylesheet',