74177d79c9
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
18 lines
291 B
Text
18 lines
291 B
Text
GDTEST_OK
|
|
{"key1": "value1", "key2": "value2"}
|
|
{"key1": "value1", "key2"}
|
|
{"key1", "key2": "value2"}
|
|
{"key1", "key2"}
|
|
{"key1": "value1"}
|
|
{"key1"}
|
|
wildcard
|
|
wildcard
|
|
wildcard
|
|
wildcard
|
|
0
|
|
1
|
|
2
|
|
wildcard
|
|
multiline {"key1": "value1"}
|
|
multiline {"key2": "value2",}
|
|
multiline {"key3": {"key1", ..,},}
|