summaryrefslogtreecommitdiffstats
path: root/src/parser_bison.y
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-03-08 18:18:34 +0100
committerFlorian Westphal <fw@strlen.de>2021-03-11 13:43:31 +0100
commit992a5dc69742717af9056be61d46b455a5448bae (patch)
tree1f88eaca0ede5a5be3ae7ada93653b3acb67707c /src/parser_bison.y
parent5896772fe3c5f01696188ea04957a825ee601b12 (diff)
scanner: queue: move to own scope
allows to remove 3 queue specific keywords from INITIAL scope. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r--src/parser_bison.y5
1 files changed, 3 insertions, 2 deletions
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