Fix multiline array/dictionary match statements
Currently array and dictionary expressions cannot be spread over multiple lines in match statements. Adding mutliline push/pop while parsing the pattern for bracket and brace enables the ability for these to be multiline. This enables more complex patterns to be matched without exceeding line limits. Fixes #90372
This commit is contained in:
parent
b2f425fe68
commit
74177d79c9
5 changed files with 82 additions and 15 deletions
|
|
@ -13,3 +13,6 @@ wildcard
|
|||
1
|
||||
2
|
||||
wildcard
|
||||
multiline {"key1": "value1"}
|
||||
multiline {"key2": "value2",}
|
||||
multiline {"key3": {"key1", ..,},}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue