From 87d02e0b327f34c58985e18cc2625d30668ff797 Mon Sep 17 00:00:00 2001 From: Ruben Stolk Date: Wed, 30 Dec 2015 14:47:35 +0100 Subject: [PATCH] Fix parsing of minimized css output also for mixins --- src/lib/css-parse.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/css-parse.html b/src/lib/css-parse.html index 78435c363c..13b1ec329a 100644 --- a/src/lib/css-parse.html +++ b/src/lib/css-parse.html @@ -171,14 +171,14 @@ _rx: { comments: /\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim, port: /@import[^;]*;/gim, - customProp: /(?:^[^;\-\s}]+)?--[^;{]*?:[^{};]*?(?:[;\n]|$)/gim, - mixinProp: /(?:^|[\s;])?--[^;{]*?:[^{;]*?{[^}]*?}(?:[;\n]|$)?/gim, + customProp: /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim, + mixinProp: /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim, mixinApply: /@apply[\s]*\([^)]*?\)[\s]*(?:[;\n]|$)?/gim, - varApply: /[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim, + varApply: /[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim, keyframesRule: /^@[^\s]*keyframes/, multipleSpaces: /\s+/g - }, - + }, + VAR_START: '--', MEDIA_START: '@media', AT_START: '@'