Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Control Flow syntax highlight curly braces mismatch #1991

@ryanhanwu

Description

@ryanhanwu

🐞 bug report

Is this a regression?

Don't think so, the Control Flow syntax is new.

Description

When using the Control Flow syntax, the curly braces breaks the syntaxhighlight.

Bug Type

What does this bug affect

  • Angular Language Service VSCode extension
  • Angular Language Service server

Reproduction

  • [After install angular language service VSC extension]
  • Create a new file and change the language mode to html
  • Paste the following html
@if (true) {
    @if (true) {
    {{ variable }}
    } @else {{{ variable2 }}}
}

Expected behavior

The curly braces should be correctly highlighted.

Screenshots

Screenshot 2024-01-23 at 9 25 40 AM

🌍 Your Environment

Angular Version:
N/A

Extension Version:


v17.1.0

VSCode Version:


1.85.1

Operating System:


Mac OS 14.2.1

Extension options:


Default

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions