Skip to content

BUG: syntax coloring for new block syntax, not working with Allman formatting #53483

@kukjevov

Description

@kukjevov

Which @angular/* package(s) are the source of the bug?

language-service

Is this a regression?

Yes

Description

Following syntax is not colored correctly

@if(cond)
{
}
@else
{
}

also for

@for(x of xxx; track x)
{
}
@empty
{
}

First block is colored that is ok, but second block is always as plain white text.

This is regression, because first version of new block syntax coloring (last beta or first rc, dont remember exactly) was working correctly. This is valid syntax that works, just is not colored correctly.

Since it was working i dont think that there is any reason why it should not work anymore.

Thank you.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

Angular: 17.0.6
Node: 18.17.1
NPM: 9.6.7
Angular Language Service VSCode Extension: 17.0.3

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: language-serviceIssues related to Angular's VS Code language servicebug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions