mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[Lexer] Only allow configuration blocks before theme.
This commit is contained in:
parent
e4d823774c
commit
06165f867a
3 changed files with 15 additions and 22 deletions
|
@ -250,10 +250,24 @@ static ThemeColor hwb_to_rgb ( double h, double w, double b)
|
|||
%type <list> t_property_element_list_optional
|
||||
%type <ival> t_property_orientation
|
||||
%type <ival> t_name_prefix_optional
|
||||
%start t_entry_list
|
||||
%start t_main
|
||||
|
||||
%%
|
||||
|
||||
/**
|
||||
* First have the configuration blocks, then the theme.
|
||||
*/
|
||||
t_main
|
||||
: %empty {}
|
||||
| t_configuration_list t_entry_list {
|
||||
// Dummy at this point.
|
||||
}
|
||||
;
|
||||
|
||||
t_configuration_list:
|
||||
%empty {}
|
||||
| t_configuration_list T_CONFIGURATION T_BOPEN t_config_property_list_optional T_BCLOSE {};
|
||||
|
||||
t_entry_list:
|
||||
%empty {
|
||||
// There is always a base widget.
|
||||
|
@ -300,9 +314,6 @@ t_name_prefix_optional t_entry_name_path_selectors T_BOPEN t_property_list_optio
|
|||
g_hash_table_destroy ( $3 );
|
||||
}
|
||||
}
|
||||
| T_CONFIGURATION T_BOPEN t_config_property_list_optional T_BCLOSE {
|
||||
// Dummy at this point.
|
||||
}
|
||||
;
|
||||
|
||||
t_config_property_list_optional
|
||||
|
|
|
@ -4,21 +4,6 @@
|
|||
* Copyright: Dave Davenport
|
||||
*/
|
||||
|
||||
configuration {
|
||||
|
||||
// The display name of this browser
|
||||
display-ssh: " ";
|
||||
// The display name of this browser
|
||||
display-run: "";
|
||||
// The display name of this browser
|
||||
display-drun: "";
|
||||
// The display name of this browser
|
||||
display-window: "";
|
||||
display-combi: "";
|
||||
show-icons: true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* User: Qball
|
||||
* Copyright: Dave Davenport
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
font: "Times New Roman 12";
|
||||
}
|
||||
|
||||
configuration {
|
||||
}
|
||||
|
||||
#window {
|
||||
anchor: north;
|
||||
location: north;
|
||||
|
|
Loading…
Reference in a new issue