diff --git a/lib/filterx/filterx-grammar.ym b/lib/filterx/filterx-grammar.ym index 0d41f392f6..102c155706 100644 --- a/lib/filterx/filterx-grammar.ym +++ b/lib/filterx/filterx-grammar.ym @@ -104,6 +104,7 @@ construct_template_expr(LogTemplate *template) %type expr %type expr_value %type expr_generator +%type expr_generator_unchecked %type function_call %type arguments %type argument @@ -315,6 +316,13 @@ expr_value ; expr_generator + : expr_generator_unchecked { + $$ = $1; + CHECK_ERROR($1, @1, "error initializing generator expression"); + } + ; + +expr_generator_unchecked : dict_generator | list_generator | regexp_search