- Notifications
You must be signed in to change notification settings - Fork26.4k
Open
Milestone
Description
Which @angular/* package(s) are the source of the bug?
language-service
Is this a regression?
No
Description
Prettier will format an Angular template using a plural i18n message like this:
<pclass="text-sm font-medium text-green-800"i18n> @let count = bundles.value().length; {count, plural, one {{{count}} Stored Bundle} other {{{count}} Stored Bundles} }</p>
This compiles and works great but the third curly in the{{{
sequence is highlighted in red in VSCode and the bracket matching is broken as well for expression. It doesn't get the entire file into a bad state (in my testing) but it's confusing. Especially since it can't (?) be fixed without disabling the automated formatting or arbitrarily changing the text in the UI.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (runng version
)
Angular CLI: 20.1.0Node: 23.8.0 (Unsupported)Package Manager: pnpm 10.6.1OS: darwin arm64Angular: 20.1.0... build, cli, common, compiler, compiler-cli, core, forms... localize, platform-browser, routerPackage Version------------------------------------------------------@angular-devkit/architect 0.2001.0 (cli-only)@angular-devkit/core 20.1.0 (cli-only)@angular-devkit/schematics 20.1.0 (cli-only)@schematics/angular 20.1.0 (cli-only)rxjs 7.8.2typescript 5.8.3
Anything else?
No response