Skip to content

Commit 9023d19

Browse files
deathaxeprincemaple
authored andcommitted
Extend meta.expression scope
This commit adds `.expression` sub-scope name to distinguish embedded interpolation expressions from control flow statements.
1 parent 5c37b59 commit 9023d19

File tree

2 files changed

+55
-55
lines changed

2 files changed

+55
-55
lines changed

NgxHTML.sublime-syntax

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ contexts:
8585
- match: \"
8686
scope: meta.string.ngx string.quoted.double.ngx punctuation.definition.string.begin.ngx
8787
embed: ng-directive-expressions
88-
embed_scope: meta.directive.value.ngx meta.string.ngx meta.interpolation.ngx source.ngx.embedded.html
88+
embed_scope: meta.directive.value.ngx meta.string.ngx meta.embedded.expression.ngx source.ngx.embedded.html
8989
escape: \"
9090
escape_captures:
9191
0: meta.string.ngx string.quoted.double.ngx punctuation.definition.string.end.ngx
9292
pop: 1
9393
- match: \'
9494
scope: meta.string.ngx string.quoted.single.ngx punctuation.definition.string.begin.ngx
9595
embed: ng-directive-expressions
96-
embed_scope: meta.directive.value.ngx meta.string.ngx meta.interpolation.ngx source.ngx.embedded.html
96+
embed_scope: meta.directive.value.ngx meta.string.ngx meta.embedded.expression.ngx source.ngx.embedded.html
9797
escape: \'
9898
escape_captures:
9999
0: meta.string.ngx string.quoted.single.ngx punctuation.definition.string.end.ngx
@@ -297,14 +297,14 @@ contexts:
297297

298298
ng-interpolations:
299299
- match: '{{'
300-
scope: meta.embedded.ngx.html punctuation.section.embedded.begin.ngx.html
300+
scope: meta.embedded.expression.ngx.html punctuation.section.embedded.begin.ngx.html
301301
push: ng-interpolation-body
302302

303303
ng-interpolation-body:
304304
- meta_include_prototype: false
305-
- meta_content_scope: meta.embedded.ngx.html source.ngx.embedded.html
305+
- meta_content_scope: meta.embedded.expression.ngx.html source.ngx.embedded.html
306306
- match: '}}'
307-
scope: meta.embedded.ngx.html punctuation.section.embedded.end.ngx.html
307+
scope: meta.embedded.expression.ngx.html punctuation.section.embedded.end.ngx.html
308308
pop: 1
309309
- include: ng-expressions
310310

0 commit comments

Comments
 (0)