diff --git a/NgxHTML.sublime-syntax b/NgxHTML.sublime-syntax index 7fad204..f551884 100644 --- a/NgxHTML.sublime-syntax +++ b/NgxHTML.sublime-syntax @@ -552,6 +552,8 @@ contexts: scope: punctuation.separator.sequence.ngx - match: ';' scope: punctuation.terminator.expression.ngx + - match: (?:\*\*|&&|\|\||\?\?|[-+*/%])= + scope: keyword.operator.assignment.augmented.ngx - match: '[!=]==?|[<>]=?' scope: keyword.operator.comparison.ngx - match: '\*\*|[-+*/%]' diff --git a/tests/syntax_test_scopes.component.html b/tests/syntax_test_scopes.component.html index 3f9e444..21fb4a4 100644 --- a/tests/syntax_test_scopes.component.html +++ b/tests/syntax_test_scopes.component.html @@ -752,7 +752,7 @@ https://angular.dev/guide/templates/expression-syntax#what-operators-are-supported --> - {{ - + * / % === !== == != = < <= >= > && || ! ?? ** }} + {{ - + * / % === !== == != = < <= >= > && || ! ?? ** += -= *= /= &&= ||= ??= **= }} @@ -772,6 +772,14 @@ + + + + + + + + {{ foo ? bar : baz }} @@ -1092,6 +1100,62 @@ +