-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEFML.YAML-tmLanguage
144 lines (124 loc) · 2.75 KB
/
EFML.YAML-tmLanguage
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: EFML
scopeName: text.efml
fileTypes: [ef, eft, efm, efml]
uuid: ee7d9ea0-f056-4365-bc31-0512369e8c17
patterns:
# efml_line_tag
- name: meta.selector.efml
begin: ^\s*?(?=\>)
end: $
patterns:
- include: '#efml-tag'
- include: '#efml-tag-class'
- include: '#efml-tag-ref'
# efml_line_attr
- name: meta.line.attr.efml
begin: ^\s*?(?=#)
end: $
patterns:
- include: '#efml-attr'
- include: '#efml-string'
# efml_line_prop
- name: meta.line.prop.efml
begin: ^\s*?(?=%)
end: $
patterns:
- include: '#efml-prop'
- include: '#efml-string'
# efml_line_event
- name: meta.line.event.efml
begin: ^\s*?(?=@)
end: $
patterns:
- include: '#efml-event'
- include: '#efml-event-method'
- include: '#efml-string'
# efml_node
- name: storage.type.eft
match: ^\s*?[+-].*?$
# efml_text
- name: text.efml
begin: ^\s*?(\.|\|)
end: $
patterns:
- include: '#efml-escape'
- include: '#efml-mustache'
# efml_comment
- name: comment.line.efml
begin: ^\s*?[^>.|#%@+-]
end: $
repository:
efml-tag:
patterns:
- name: entity.name.tag.block.any.efml
begin: \>
end: (?=(\.|\#))|$
efml-tag-class:
patterns:
- name: meta.selector.css entity.other.attribute-name.class.efml
begin: \.
end: (?=((#([^\}]|\}[^\}])*$)|$))
patterns:
- include: '#efml-mustache'
efml-tag-ref:
patterns:
- name: entity.other.attribute-name.id.html
begin: \#([^\}]|\}[^\}])*$
end: $
efml-attr:
patterns:
- name: entity.other.attribute-name.html
begin: \#
end: (?=\=)|$
efml-prop:
patterns:
- name: keyword.control.efml
begin: \%
end: ((?=\=)|$)
efml-event:
patterns:
- name: variable.function.efml
begin: \@
end: ((?=\=)|$)
efml-event-method:
patterns:
- name: entity.name.function.efml
begin: (?<=\=)
end: ((?=:)|$)
efml-string:
patterns:
- name: string.efml
begin: (?<=(\=|:))
end: $
patterns:
- include: '#efml-mustache'
efml-escape:
patterns:
- name: constant.character.escape.efml
match: \&(u.{0,4}|x.{0,2}|.?)
efml-mustache:
patterns:
- name: expression.embbeded.efml
begin: \{\{
end: \}\}|$
patterns:
- include: '#mustache-path'
- include: '#mustache-string'
mustache-path:
patterns:
- name: variable.other.object.efml
begin: (?<=\{\{)
end: (?=(\=|\}\}|$))
mustache-string:
patterns:
- name: string.mustache.efml
begin: (?<=\=)
end: (?=\}\})
patterns:
- include: '#mustache-escape'
mustache-escape:
patterns:
- name: constant.character.escape.efml
match: \&(u(?!}})..(?!}}).(?!}}).|x(?!}}).(?!}}).|(?!}}).)