angular/packages/compiler/test/expression_parser
Kristiyan Kostadinov f51ab32fb3 fix(compiler): recover template literals with broken expressions (#64150)
Fixes two issues that were preventing template literals from being recovered properly if one of the interpolated expressions is broken:
1. We weren't updating the expected brace counter when an interpolation starts which in turn was throwing off the recovery logic in `skip`.
2. When producing tokens for template literals, we were treating the closing brace as an operator whereas other places treat it as a character. Even after fixing the first issue, this was preventing the recovery logic from working correctly.

Fixes #63940.

PR Close #64150
2025-09-30 16:01:50 -04:00
..
utils Revert "refactor(compiler): Remove the interpolation config (#64071)" (#64110) 2025-09-26 15:16:54 -04:00
ast_spec.ts refactor(compiler): consolidate error classes (#62160) 2025-06-23 14:25:28 +02:00
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63384) 2025-08-25 15:45:46 -07:00
lexer_spec.ts fix(compiler): recover template literals with broken expressions (#64150) 2025-09-30 16:01:50 -04:00
parser_spec.ts fix(compiler): recover template literals with broken expressions (#64150) 2025-09-30 16:01:50 -04:00
serializer_spec.ts refactor(compiler): consolidate error classes (#62160) 2025-06-23 14:25:28 +02:00