-
Notifications
You must be signed in to change notification settings - Fork 2
/
HTML (Erlang).sublime-syntax
36 lines (36 loc) · 1.11 KB
/
HTML (Erlang).sublime-syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
%YAML 1.2
---
# http://www.sublimetext.com/docs/3/syntax.html
name: HTML (Erlang)
file_extensions:
- yaws
scope: text.html.erlang.yaws
contexts:
main:
- match: (^\s*)?(?=<erl>)
captures:
1: punctuation.whitespace.embedded.leading.html
push:
- meta_content_scope: meta.embedded.block.erlang
- match: (?!\G)(\s*\n)?
captures:
1: punctuation.whitespace.embedded.trailing.html
pop: true
- match: (<)(erl)(>)
captures:
0: meta.tag.template.html
1: punctuation.definition.tag.begin.html
2: entity.name.tag.html
3: punctuation.definition.tag.end.html
push:
- meta_content_scope: source.erlang
- match: ((</))(erl)(>)
captures:
0: meta.tag.template.html
1: punctuation.definition.tag.begin.html
2: source.erlang
3: entity.name.tag.html
4: punctuation.definition.tag.end.html
pop: true
- include: scope:source.erlang
- include: scope:text.html.basic