From 5a5d809b398a920a5267a508a8620b5ee75ab414 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 11 Mar 2021 14:23:02 +0100 Subject: scanner: ct: move to own scope This allows moving multiple ct specific keywords out of INITIAL scope. Next few patches follow same pattern: 1. add a scope_close_XXX rule 2. add a SCANSTATE_XXX & make flex switch to it when encountering XXX keyword 3. make bison leave SCANSTATE_XXXX when it has seen the complete expression. Signed-off-by: Florian Westphal --- include/parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/parser.h') diff --git a/include/parser.h b/include/parser.h index fd5006d3..be29f400 100644 --- a/include/parser.h +++ b/include/parser.h @@ -28,6 +28,7 @@ struct parser_state { enum startcond_type { PARSER_SC_BEGIN, + PARSER_SC_CT, PARSER_SC_EXPR_HASH, PARSER_SC_EXPR_IPSEC, PARSER_SC_EXPR_NUMGEN, -- cgit v1.2.3