Skip to content

Commit 7909b0c

Browse files
deathaxeprincemaple
authored andcommitted
Add support for in operator
1 parent 31e6665 commit 7909b0c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

NgxHTML.sublime-syntax

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,8 @@ contexts:
564564
- match: \?(?!\.)
565565
scope: keyword.operator.ternary.ngx
566566
push: ng-ternary-expression
567+
- match: in{{ident_break}}
568+
scope: keyword.operator.comparison.ngx
567569
- match: (?:typeof|void){{ident_break}}
568570
scope: keyword.operator.type.ngx
569571

tests/syntax_test_scopes.component.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,11 @@
656656
<!-- ^ punctuation.definition.string.end.ngx -->
657657
<!-- ^^ punctuation.section.embedded.end.ngx.html -->
658658

659+
{{ "model" in cars }}
660+
<!-- ^^^^^^^ meta.string.ngx string.quoted.double.ngx -->
661+
<!-- ^^ keyword.operator.comparison.ngx -->
662+
<!-- ^^^^ variable.other.readwrite.ngx -->
663+
659664
{{ type = typeof 32 }}
660665
<!-- ^^^^ variable.other.readwrite.ngx -->
661666
<!-- ^ keyword.operator.assignment.ngx -->

0 commit comments

Comments
 (0)