[Bug #19195] Allow optional newlines before closing parenthesis
This commit is contained in:
parent
3262842e0a
commit
764da87ab0
Notes:
git
2022-12-13 09:06:38 +00:00
2
parse.y
2
parse.y
@ -4901,7 +4901,7 @@ p_var_ref : '^' tIDENTIFIER
|
||||
}
|
||||
;
|
||||
|
||||
p_expr_ref : '^' tLPAREN expr_value ')'
|
||||
p_expr_ref : '^' tLPAREN expr_value rparen
|
||||
{
|
||||
/*%%%*/
|
||||
$$ = NEW_BEGIN($3, &@$);
|
||||
|
@ -464,6 +464,8 @@ END
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
assert_valid_syntax("1 in ^(1\n)")
|
||||
end
|
||||
|
||||
def test_array_pattern
|
||||
|
Loading…
x
Reference in New Issue
Block a user