diff --git a/lib/cfg-grammar.y b/lib/cfg-grammar.y index fd178561d0..5bc4e6f41e 100644 --- a/lib/cfg-grammar.y +++ b/lib/cfg-grammar.y @@ -157,6 +157,9 @@ /* this is a placeholder for unit tests, must be the latest & largest */ %token LL_CONTEXT_MAX 27 + +%left ';' + /* operators in the filter language, the order of this determines precedence */ %right KW_ASSIGN 9000 %right '?' ':' diff --git a/lib/filter/filter-expr-grammar.ym b/lib/filter/filter-expr-grammar.ym index 2d1e55496e..9462617201 100644 --- a/lib/filter/filter-expr-grammar.ym +++ b/lib/filter/filter-expr-grammar.ym @@ -112,8 +112,6 @@ _translate_number_literals(CfgLexer *lexer, gint compare_mode, LogTemplate *expr %token KW_PROGRAM %token KW_IN_LIST -%left ';' - %type filter_expr %type filter_simple_expr %type filter_plugin