From c696e1c03bc0e7ced21161e1b46053d726b5c397 Mon Sep 17 00:00:00 2001 From: Ilya Bylich Date: Thu, 28 Dec 2023 13:22:35 +0100 Subject: [PATCH] * ruby33.y: extract string_dend --- lib/parser/ruby33.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/parser/ruby33.y b/lib/parser/ruby33.y index 830402eb5..c27d9b406 100644 --- a/lib/parser/ruby33.y +++ b/lib/parser/ruby33.y @@ -2510,7 +2510,7 @@ regexp_contents: # nothing @lexer.cmdarg.push(false) @lexer.cond.push(false) } - compstmt tSTRING_DEND + compstmt string_dend { @lexer.cmdarg.pop @lexer.cond.pop @@ -2518,6 +2518,8 @@ regexp_contents: # nothing result = @builder.begin(val[0], val[2], val[3]) } + string_dend: tSTRING_DEND + string_dvar: tGVAR { result = @builder.gvar(val[0])