diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-10-22 12:41:51 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-10-22 12:42:33 +0200 |
commit | 847d2e82a045fbafbe42da9013f3623542cd42e4 (patch) | |
tree | cf1c416e68ddb33f5bd9c23dc0c8f16df9282a91 /lexer/theme-parser.y | |
parent | 814fad81913c16247a377a1e92b311bcb4aa820f (diff) |
[Lexer/Parser] Make the '#' before element optional.
Diffstat (limited to 'lexer/theme-parser.y')
-rw-r--r-- | lexer/theme-parser.y | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y index b97bae22..de2acf6f 100644 --- a/lexer/theme-parser.y +++ b/lexer/theme-parser.y @@ -248,6 +248,7 @@ static ThemeColor hwb_to_rgb ( double h, double w, double b) %type <list> t_property_element_list %type <list> t_property_element_list_optional %type <ival> t_property_orientation +%type <ival> t_name_prefix_optional %start t_entry_list %% @@ -265,8 +266,16 @@ t_entry_list: } ; +/** + * Small dummy object to make the prefix optional. + */ +t_name_prefix_optional +: T_NAME_PREFIX {} +| %empty {} +; + t_entry: -T_NAME_PREFIX t_entry_name_path_selectors T_BOPEN t_property_list_optional T_BCLOSE +t_name_prefix_optional t_entry_name_path_selectors T_BOPEN t_property_list_optional T_BCLOSE { for ( GList *liter = g_list_first ( $2); liter; liter = g_list_next ( liter ) ) { ThemeWidget *widget = rofi_theme; |