-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathelmx.cson
130 lines (130 loc) · 2.9 KB
/
elmx.cson
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
'name': 'ElmX'
'scopeName': 'source.elm.elmx'
'fileTypes': [
'elmx'
]
'patterns': [
{
'include': '#elmx'
}
{
'include': 'source.elm'
}
]
'repository':
'pcdata':
'patterns': [
{
'include': '#pcdata-quotes'
}
]
'elmx-tag-attributes':
'patterns': [
{
'include': '#elmx-tag-attribute-name'
}
{
'include': '#elmx-string-double-quoted'
}
{
'include': '#elmx-string-single-quoted'
}
{
'include': '#elmx-evaluated-code'
}
]
'elmx-tag-attribute-name':
'name': 'meta.tag.attribute-name.elm.elmx'
'match': '\\b([a-zA-Z0-9\\-:]+)'
'captures':
'1':
'name': 'entity.other.attribute-name.elm.elmx'
'elmx-string-double-quoted':
'begin': '"'
'end': '"'
'name': 'string.quoted.double.elm.elmx'
'endCaptures':
'0':
'name': 'punctuation.definition.string.end.elm.elmx'
'beginCaptures':
'0':
'name': 'punctuation.definition.string.begin.elm.elmx'
'elmx-string-single-quoted':
'begin': '\''
'end': '\''
'name': 'string.quoted.single.elm.elmx'
'endCaptures':
'0':
'name': 'punctuation.definition.string.end.elm.elmx'
'beginCaptures':
'0':
'name': 'punctuation.definition.string.begin.elm.elmx'
'elmx-evaluated-code':
'begin': '{'
'end': '}'
'name': 'meta.brace.curly.elm.elmx'
'endCaptures':
'0':
'name': 'punctuation.definition.brace.curly.end.elm.elmx'
'beginCaptures':
'0':
'name': 'punctuation.definition.brace.curly.start.elm.elmx'
'patterns': [
{
'include': 'source.elm'
}
]
'elmx-tag-content':
'begin': '(?<=\\S)(/?>)'
'end': '(?=</?[a-zA-Z0-9\.:$_]+)'
'beginCaptures':
'1':
'name': 'punctuation.definition.tag.end.elm.elmx'
'patterns': [
{
'include': '#elmx-evaluated-code'
}
]
'elmx-tag-open':
'begin': '(<)([a-zA-Z0-9\.:$_]+)'
'end': '(?=/?>)'
'name': 'tag.open.elm.elmx'
'beginCaptures':
'1':
'name': 'punctuation.definition.tag.begin.elm.elmx'
'2':
'name': 'entity.name.tag.elm.elmx'
'patterns': [
{
'include': '#elmx-tag-attributes'
}
]
'elmx-tag-close':
'match': '(</)([^>]+)(>)'
'name': 'tag.closed.elm.elmx'
'captures':
'1':
'name': 'punctuation.definition.tag.begin.elm.elmx'
'2':
'name': 'entity.name.tag.elm.elmx'
'3':
'name': 'punctuation.definition.tag.end.elm.elmx'
'elmx-tag-invalid':
'name': 'invalid.illegal.tag.incomplete.elm.elmx'
'match': '<\\s*>'
'elmx':
'name': 'meta.elm.elmx'
'patterns': [
{
'include': '#elmx-tag-open'
}
{
'include': '#elmx-tag-content'
}
{
'include': '#elmx-tag-close'
}
{
'include': '#elmx-tag-invalid'
}
]