From f8b1bc9d95920d977ee2a24bbda3f97cb563b1bc Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 17 Aug 2020 12:12:23 +0200 Subject: src: add comment support for map too Extend and slightly rework tests/shell to cover this case too. Signed-off-by: Pablo Neira Ayuso --- src/parser_bison.y | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index 7e094ff6..d4e99417 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -1896,6 +1896,11 @@ map_block : /* empty */ { $$ = $-1; } $1->init = $4; $$ = $1; } + | map_block comment_spec stmt_separator + { + $1->comment = $2; + $$ = $1; + } | map_block set_mechanism stmt_separator ; -- cgit v1.2.3