angular/vscode-ng-language-service/syntaxes/test/data/template-blocks.html
Joey Perrott 863c7eaafe build: migrate vscode extension into repo (#63924)
Migrate the vscode extension for angular into this repository.

PR Close #63924
2025-09-24 20:24:32 +00:00

62 lines
779 B
HTML

@defer (doSomething({111})) {
<a></a>
}
@defer {
<a></a>
}
@switch (a) {
@case (1) {
{{getCase1()}}
}
@case (2) {
{{a.b.c}}
}
@default {
default case
}
}
@if (a==b) { hello } @else { goodbye }
@if (a==b) {
hello
} @else if (b==a) {
goodbye
}
@for (let item of items; track $index) {
bla
}
@if (
items;
track $index;
let o = $odd
) {
{{o}}
}
@if
(items) {}
@for
(item of items; track $index) { }
@for (item of items; track $index) {
}
@empty
{
}
<!-- `track` is only a keyword at the start of the clause -->
@for (item of items; let track = $index; track item.track) { }
@for (track of tracks; track track) { }
<!-- Should not highlight -->
some.email@google.com ({}) {}