dlvandenberg / tree-sitter-angular

Tree Sitter Grammar for Angular
MIT License
34 stars 9 forks source link

plural expressions can brake syntax highlighting #16

Closed jigfox closed 5 months ago

jigfox commented 5 months ago
@Component(/* */)
export class SomeComponent {
  public list: string[];
}
<div>
  {list.length, plural, =1 {One Item} other {{{list.length}} Items}}
</div>
<span>some mor text</span>

will look like this:

image

everything after the expression looses highlighting

dlvandenberg commented 5 months ago

Ah, this is the ICU expression format. It is currently not supported.

I will look into this when I have time.

jigfox commented 5 months ago

@dlvandenberg I have opened PR #18 to solve this, comments and suggestions will be much appreciated