From 992a5dc69742717af9056be61d46b455a5448bae Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Mon, 8 Mar 2021 18:18:34 +0100 Subject: scanner: queue: move to own scope allows to remove 3 queue specific keywords from INITIAL scope. Signed-off-by: Florian Westphal --- src/parser_bison.y | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index 1ac4dbe4..423dddfc 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -863,6 +863,7 @@ opt_newline : NEWLINE close_scope_hash : { scanner_pop_start_cond(nft->scanner, PARSER_SC_EXPR_HASH); }; close_scope_numgen : { scanner_pop_start_cond(nft->scanner, PARSER_SC_EXPR_NUMGEN); }; +close_scope_queue : { scanner_pop_start_cond(nft->scanner, PARSER_SC_EXPR_QUEUE); }; common_block : INCLUDE QUOTED_STRING stmt_separator { @@ -3635,8 +3636,8 @@ nf_nat_flag : RANDOM { $$ = NF_NAT_RANGE_PROTO_RANDOM; } | PERSISTENT { $$ = NF_NAT_RANGE_PERSISTENT; } ; -queue_stmt : queue_stmt_alloc - | queue_stmt_alloc queue_stmt_args +queue_stmt : queue_stmt_alloc close_scope_queue + | queue_stmt_alloc queue_stmt_args close_scope_queue ; queue_stmt_alloc : QUEUE -- cgit v1.2.3