Incorrect parsing of unbalanced braces based on issue 6914 (#7621)

This commit is contained in:
Kangaxx-0
2023-01-24 00:05:46 -08:00
committed by GitHub
parent ef660be285
commit 0bb2e47c98
6 changed files with 38 additions and 6 deletions

View File

@ -470,3 +470,8 @@ fn or_and_xor() -> TestResult {
// Assumes the precedence NOT > AND > XOR > OR
run_test(r#"true or false xor true or false"#, "true")
}
#[test]
fn unbalanced_delimiter() -> TestResult {
fail_test(r#"{a:{b:5}}}"#, "unbalanced { and }")
}