From 5dc172040ffb50ee02a4fbf599353420d50714f9 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 8 Oct 2019 15:27:16 -0400 Subject: Handle variables while extracting theme --- src/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/config.py') diff --git a/src/config.py b/src/config.py index 80e264f..b59f79d 100755 --- a/src/config.py +++ b/src/config.py @@ -83,7 +83,9 @@ def extract_theme(config_file): is_theme_line=True if contains(".*colors",line): in_colors=True - if is_theme_line or in_colors: + if contains("(\s)*set",line): # If var definition + build.parse(line_orig) + elif is_theme_line or in_colors: build.parse(line_orig) # Seems to by strange to have comment here if contains(".*}",line) and in_colors: in_colors=False -- cgit v1.2.3