diff options
author | Quentin Glidic <sardemff7+git@sardemff7.net> | 2017-03-28 22:56:33 +0200 |
---|---|---|
committer | Quentin Glidic <sardemff7+git@sardemff7.net> | 2017-03-28 22:56:33 +0200 |
commit | b25439c63390850c5a756dafe00015f46a05cbe2 (patch) | |
tree | d52825d89e3c94e447bffe8e18f576119cadc22d /lexer/theme-parser.y | |
parent | c5b49407036986e526c594792e1b64809cd0ce29 (diff) | |
parent | e45f0194d116a69abe77d74116eb5f1cf50e76ed (diff) |
Merge branch 'master' into wip/wayland
Diffstat (limited to 'lexer/theme-parser.y')
-rw-r--r-- | lexer/theme-parser.y | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y index e304ff29..4a5368b8 100644 --- a/lexer/theme-parser.y +++ b/lexer/theme-parser.y @@ -7,6 +7,7 @@ %parse-param {const char *what} %code requires { #include "theme.h" +#include "xrmoptions.h" typedef struct YYLTYPE { int first_line; @@ -89,6 +90,7 @@ int yylex (YYSTYPE *, YYLTYPE *); %token NAME_PREFIX "Element section ('# {name} { ... }')" %token WHITESPACE "White space" %token PDEFAULTS "Default settings section ( '* { ... }')" +%token CONFIGURATION "Configuration block" %type <ival> highlight_styles %type <sval> entry @@ -131,6 +133,15 @@ NAME_PREFIX name_path BOPEN optional_properties BCLOSE PDEFAULTS BOPEN optional_properties BCLOSE { rofi_theme_widget_add_properties ( rofi_theme, $3); } +| CONFIGURATION BOPEN optional_properties BCLOSE { + GHashTableIter iter; + g_hash_table_iter_init ( &iter, $3 ); + gpointer key,value; + while ( g_hash_table_iter_next ( &iter, &key, &value ) ) { + Property *p = (Property *) value; + config_parse_set_property ( p ); + } +} ; /** |