Skip to content

Commit a44b800

Browse files
azizkprincemaple
authored andcommitted
HTML: fix: clear scopes to show variables as white text.
* Match [=/|]? after opening punctuation.
1 parent fbf9b58 commit a44b800

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

HTML (EEx).sublime-syntax

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,25 @@ contexts:
1616
- match: <%#
1717
push:
1818
- meta_scope: comment.eex.elixir
19-
- match: \%>
19+
- match: '%>'
2020
pop: true
2121

2222
- match: <%%
2323
scope: keyword punctuation.definition.string.begin.elixir
2424
push:
2525
- meta_content_scope: string.eex.elixir
26-
- match: \%>
26+
- match: '%>'
2727
scope: keyword punctuation.definition.string.end.elixir
2828
pop: true
2929

30-
- match: <%=?
31-
scope: keyword punctuation.section.embedded.begin.elixir
32-
embed: scope:source.elixir
33-
embed_scope: source.elixir.embedded.html
34-
escape: \%>
35-
escape_captures:
36-
0: keyword punctuation.section.embedded.end.elixir
30+
- match: (?=<%)
31+
push:
32+
- clear_scopes: 1
33+
- match: '%>'
34+
scope: keyword punctuation.section.embedded.end.elixir
35+
pop: true
36+
- match: <%[=/|]?
37+
scope: keyword punctuation.section.embedded.begin.elixir
38+
embed: scope:source.elixir
39+
embed_scope: source.elixir.embedded.html
40+
escape: (?=%>)

0 commit comments

Comments
 (0)