angular/packages/compiler/src/expression_parser
Kristiyan Kostadinov 159be56709 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
..
ast.ts feat(core): support regular expressions in templates (#63887) 2025-09-18 15:08:56 +00:00
lexer.ts fix(compiler): recover template literals with broken expressions (#64150) 2025-09-30 16:01:50 -04:00
parser.ts fix(compiler): recover template literals with broken expressions (#64150) 2025-09-30 16:01:50 -04:00
serializer.ts feat(core): support regular expressions in templates (#63887) 2025-09-18 15:08:56 +00:00