diff options
author | Dave Davenport <qball@gmpclient.org> | 2018-07-10 13:53:40 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2018-07-10 13:53:40 +0200 |
commit | 09db7d5d3f5574794edb02e3f12dcfbdb4c0da40 (patch) | |
tree | c728055f56b575494e371b90924ffb9f4ee6dabc /lexer/theme-lexer.l | |
parent | dd0ae5bda0176d1da9475659e5f137f0f21a9719 (diff) |
[Tests] Fix window test.
Diffstat (limited to 'lexer/theme-lexer.l')
-rw-r--r-- | lexer/theme-lexer.l | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l index dfbb3fd9..385b28b8 100644 --- a/lexer/theme-lexer.l +++ b/lexer/theme-lexer.l @@ -54,7 +54,9 @@ typedef enum { /** Parse a file */ PT_FILE, /** Parse a string */ - PT_STRING + PT_STRING, + /** Parse environment */ + PT_ENV } ParseType; /** @@ -123,6 +125,7 @@ static double rofi_theme_parse_convert_hex ( char high, char low) } \ break;\ }\ + case PT_ENV:\ case PT_STRING:\ {\ yy_size_t len = MIN (max_size, current->str_len);\ @@ -446,7 +449,7 @@ if ( queue == NULL ){ ParseObject *top = g_queue_peek_head ( file_queue ); top->location = *yylloc; ParseObject *po = g_malloc0(sizeof(ParseObject)); - po->type = PT_STRING; + po->type = PT_ENV; po->input_str = val; po->str_len = strlen(val); current = po; |