mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:50:14 +01:00
Don't CHECK-fail if the file contains mismatched braces and generates an unbalanced parse tree. Properly balance the start and end of symbols. This previously caused errors to be reported in clients such as VS Code. Compute a correct range for definitions. Don't assume we can find the matching `}` for an opening symbol, since some of our definitions are delimited by a `;` instead. Assisted-by: Gemini via Antigravity