From 711fc77569faceb15fedb644124e3549fcfa2bc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 17 Jun 2018 11:50:01 +0200 Subject: [PATCH] css: properly handle variable declarations with comments in postprocess.py. --- css/postprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/postprocess.py b/css/postprocess.py index 78d822bf..f18c27ef 100755 --- a/css/postprocess.py +++ b/css/postprocess.py @@ -35,7 +35,7 @@ closing_brace_rx = re.compile("^\\s*}\\s*$") comment_rx = re.compile("^\\s*(/\\*.*\\*/)?\\s*$") comment_start_rx = re.compile("^\\s*(/\\*.*)\\s*$") comment_end_rx = re.compile("^\\s*(.*\\*/)\\s*$") -variable_declaration_rx = re.compile("^\\s*(?P--[a-z-]+)\\s*:\\s*(?P[^;]+)\\s*;\\s*$") +variable_declaration_rx = re.compile("^\\s*(?P--[a-z-]+)\\s*:\\s*(?P[^;]+)\\s*;\\s*(/\\*.*\\*/)?\\s*$") variable_use_rx = re.compile("^(?P.+)var\\((?P--[a-z-]+)\\)(?P.+)$") def postprocess(files, process_imports, out_file): -- 2.30.2