From 72a53b3d26f4c2128f9f44b32deae2552139a94d Mon Sep 17 00:00:00 2001 From: Ivan Kochurkin Date: Tue, 23 Aug 2022 22:55:39 +0200 Subject: [PATCH] Add ListLabelInsideClosure.txt test for #2016 (not fixed) --- .../ParserExec/ListLabelInsideClosure.txt | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 runtime-testsuite/resources/org/antlr/v4/test/runtime/descriptors/ParserExec/ListLabelInsideClosure.txt diff --git a/runtime-testsuite/resources/org/antlr/v4/test/runtime/descriptors/ParserExec/ListLabelInsideClosure.txt b/runtime-testsuite/resources/org/antlr/v4/test/runtime/descriptors/ParserExec/ListLabelInsideClosure.txt new file mode 100644 index 0000000000..61b7af56c2 --- /dev/null +++ b/runtime-testsuite/resources/org/antlr/v4/test/runtime/descriptors/ParserExec/ListLabelInsideClosure.txt @@ -0,0 +1,21 @@ +[notes] +Template rendering error, https://github.com/antlr/antlr4/issues/2016 + +[type] +Parser + +[grammar] +grammar Test; + +r + : args+=r (op=PLUS args+=r)+ + | IDENTIFIER + ; +PLUS : '+'; +IDENTIFIER : [a-zA-Z_][a-zA-Z0-9_]*; + +[start] +r + +[input] +a+b