[Lexer] Remove Ambiguity in parser on empty input.

This commit is contained in:
Dave Davenport 2018-07-21 18:43:03 +02:00
parent 06165f867a
commit 0058088962
1 changed files with 3 additions and 5 deletions

View File

@ -258,8 +258,7 @@ static ThemeColor hwb_to_rgb ( double h, double w, double b)
* First have the configuration blocks, then the theme.
*/
t_main
: %empty {}
| t_configuration_list t_entry_list {
: t_configuration_list t_entry_list {
// Dummy at this point.
}
;
@ -276,9 +275,8 @@ t_entry_list:
$$ = rofi_theme;
}
}
| t_entry_list
t_entry {
}
| t_entry_list t_entry {
}
;
/**