diff options
author | Dave Davenport <qball@gmpclient.org> | 2018-07-21 18:43:03 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2018-07-21 18:43:03 +0200 |
commit | 005808896211bbc5366ad821e754ef2621b5d4cb (patch) | |
tree | abe3f023e73daefb3eed25ffa1e6da7a77276579 /lexer | |
parent | 06165f867a6431fc4dad55e5a1158ebc46416704 (diff) |
[Lexer] Remove Ambiguity in parser on empty input.
Diffstat (limited to 'lexer')
-rw-r--r-- | lexer/theme-parser.y | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y index a2c53071..28b8b3eb 100644 --- a/lexer/theme-parser.y +++ b/lexer/theme-parser.y @@ -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 { + } ; /** |