aboutsummaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2019-10-08 15:27:16 -0400
committerLoic Guegan <manzerbredes@mailbox.org>2019-10-08 15:27:16 -0400
commit5dc172040ffb50ee02a4fbf599353420d50714f9 (patch)
treec7fa0b6c23b99025b3af701aac5269cfc1d0d5de /src/config.py
parent58a2941879e287cd38927f2f6a20e22dd7f670f5 (diff)
Handle variables while extracting theme
Diffstat (limited to 'src/config.py')
-rwxr-xr-xsrc/config.py4
1 files changed, 3 insertions, 1 deletions
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