[Bug #19195] Allow optional newlines before closing parenthesis

This commit is contained in:
Nobuyoshi Nakada 2022-12-13 15:18:42 +09:00
parent 3262842e0a
commit 764da87ab0
Notes: git 2022-12-13 09:06:38 +00:00
2 changed files with 3 additions and 1 deletions

View File

@ -4901,7 +4901,7 @@ p_var_ref : '^' tIDENTIFIER
}
;
p_expr_ref : '^' tLPAREN expr_value ')'
p_expr_ref : '^' tLPAREN expr_value rparen
{
/*%%%*/
$$ = NEW_BEGIN($3, &@$);

View File

@ -464,6 +464,8 @@ END
true
end
end
assert_valid_syntax("1 in ^(1\n)")
end
def test_array_pattern