Fix parsing interpolated strings with unmatched braces (#14182)
* Pop string nesting before error in nested quotes
* Cover more cases of incomplete interpolation
* Add tests for unmatched curly brace
Two tests for unmatched curly brace in interpolated string
* Split tests into separate cases
This splits two unit tests that were testing multiple cases in one go
into multiple unit tests - one per each case.
Note, that original tests were expecting an accurate error for each
of multiple lines of malformed string literals. They would no longer
pass with changes introduced by previous commits in this PR.
Co-authored-by: NAdam Boniecki <adboniec@microsoft.com>
Showing