diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2019-10-08 15:27:16 -0400 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2019-10-08 15:27:16 -0400 |
| commit | 5dc172040ffb50ee02a4fbf599353420d50714f9 (patch) | |
| tree | c7fa0b6c23b99025b3af701aac5269cfc1d0d5de /src/config.py | |
| parent | 58a2941879e287cd38927f2f6a20e22dd7f670f5 (diff) | |
Handle variables while extracting theme
Diffstat (limited to 'src/config.py')
| -rwxr-xr-x | src/config.py | 4 |
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 |
