github-linguist 4.8.9 → 4.8.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/git-linguist +2 -2
- data/grammars/source.ats.json +58 -128
- data/grammars/source.autoit.json +158 -153
- data/grammars/source.awk.json +333 -383
- data/grammars/source.batchfile.json +194 -0
- data/grammars/source.c.platform.json +359 -22
- data/grammars/source.changelogs.rpm-spec.json +99 -0
- data/grammars/source.clojure.json +9 -3
- data/grammars/source.dockerfile.json +67 -78
- data/grammars/source.elm.json +20 -379
- data/grammars/source.emacs.lisp.json +656 -0
- data/grammars/source.gdscript.json +233 -228
- data/grammars/source.graphql.json +75 -10
- data/grammars/source.js.json +2 -2
- data/grammars/source.js.jsx.json +247 -839
- data/grammars/source.js.regexp.json +1 -1
- data/grammars/source.nginx.json +882 -768
- data/grammars/source.nsis.json +151 -143
- data/grammars/source.objc.json +3 -0
- data/grammars/source.objc.platform.json +174 -104
- data/grammars/source.puppet.json +429 -396
- data/grammars/source.pyjade.json +11 -0
- data/grammars/source.regexp.babel.json +1 -1
- data/grammars/source.rpm-spec.json +770 -0
- data/grammars/source.systemverilog.json +1110 -961
- data/grammars/source.ts.json +57 -57
- data/grammars/source.tsx.json +57 -57
- data/grammars/text.dart-analysis-output.json +67 -152
- data/grammars/text.error-list.json +54 -0
- data/grammars/text.find-refs.json +927 -0
- data/grammars/text.html.basic.json +1 -1
- data/grammars/text.html.mediawiki.elm-build-output.json +108 -0
- data/grammars/text.html.mediawiki.elm-documentation.json +22 -0
- data/grammars/text.html.vue.json +35 -0
- data/grammars/text.jade.json +34 -12
- data/grammars/text.roff.json +1 -1
- data/lib/linguist/heuristics.rb +16 -4
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +25 -5
- data/lib/linguist/samples.json +1367 -163
- data/lib/linguist/version.rb +1 -1
- metadata +10 -3
- data/grammars/source.dosbatch.json +0 -70
@@ -0,0 +1,99 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"changes",
|
4
|
+
"Changelog",
|
5
|
+
"CHANGES",
|
6
|
+
"CHANGELOG"
|
7
|
+
],
|
8
|
+
"foldingStartMarker": "(:?^[-]{30}|[ \\t]*\\*",
|
9
|
+
"foldingStopMarker": "(^$)",
|
10
|
+
"name": "ChangeLogs",
|
11
|
+
"patterns": [
|
12
|
+
{
|
13
|
+
"match": "^[*+=-]{30}[+==-]*",
|
14
|
+
"name": "entity.section.name.changelogs"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"match": "^[ \\t]*- (.+)",
|
18
|
+
"captures": {
|
19
|
+
"1": {
|
20
|
+
"name": "comment.changelogs"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"match": "^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+ \\d+:\\d+:\\d+ [A-Z]+ \\d{4}) - (.*) (<.*@.*>) ([#_a-zA-Z0-9.-]+)$",
|
26
|
+
"captures": {
|
27
|
+
"1": {
|
28
|
+
"name": "constant.changelogs"
|
29
|
+
},
|
30
|
+
"2": {
|
31
|
+
"name": "entity.name.changelogs"
|
32
|
+
},
|
33
|
+
"3": {
|
34
|
+
"name": "variable.other.changelogs"
|
35
|
+
},
|
36
|
+
"4": {
|
37
|
+
"name": "constant.numeric.changelogs"
|
38
|
+
}
|
39
|
+
}
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"match": "^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+(?: \\d+:\\d+:\\d+ [A-Z]+)? \\d{4}) (.*) (<.+@.+>)(?: -)? ([#a-zA-Z0-9.-]+)?$",
|
43
|
+
"captures": {
|
44
|
+
"1": {
|
45
|
+
"name": "constant.changelogs"
|
46
|
+
},
|
47
|
+
"2": {
|
48
|
+
"name": "entity.name.changelogs"
|
49
|
+
},
|
50
|
+
"3": {
|
51
|
+
"name": "variable.other.changelogs"
|
52
|
+
},
|
53
|
+
"4": {
|
54
|
+
"name": "constant.numeric.changelogs"
|
55
|
+
}
|
56
|
+
}
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"match": "^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+(?: \\d+:\\d+:\\d+ [A-Z]+)? \\d{4}) (.*) (<.*@.*>)(?: -) (.*)$",
|
60
|
+
"captures": {
|
61
|
+
"1": {
|
62
|
+
"name": "constant.changelogs"
|
63
|
+
},
|
64
|
+
"2": {
|
65
|
+
"name": "entity.name.changelogs"
|
66
|
+
},
|
67
|
+
"3": {
|
68
|
+
"name": "variable.other.changelogs"
|
69
|
+
},
|
70
|
+
"4": {
|
71
|
+
"name": "constant.numeric.changelogs"
|
72
|
+
}
|
73
|
+
}
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"match": "^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+(?: \\d+:\\d+:\\d+ [A-Z]+)? \\d{4})(?: -) (.+@.+)$",
|
77
|
+
"captures": {
|
78
|
+
"1": {
|
79
|
+
"name": "constant.changelogs"
|
80
|
+
},
|
81
|
+
"2": {
|
82
|
+
"name": "variable.other.changelogs"
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"match": "^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]+[ ]+\\d+ \\d{4}) (.+@.+)$",
|
88
|
+
"captures": {
|
89
|
+
"1": {
|
90
|
+
"name": "constant.changelogs"
|
91
|
+
},
|
92
|
+
"2": {
|
93
|
+
"name": "variable.other.changelogs"
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
],
|
98
|
+
"scopeName": "source.changelogs.rpm-spec"
|
99
|
+
}
|
@@ -3,11 +3,14 @@
|
|
3
3
|
"fileTypes": [
|
4
4
|
"boot",
|
5
5
|
"clj",
|
6
|
+
"clj.hl",
|
6
7
|
"cljc",
|
7
8
|
"cljs",
|
9
|
+
"cljs.hl",
|
8
10
|
"cljx",
|
9
11
|
"clojure",
|
10
|
-
"edn"
|
12
|
+
"edn",
|
13
|
+
"org"
|
11
14
|
],
|
12
15
|
"foldingStartMarker": "\\(\\s*$",
|
13
16
|
"foldingStopMarker": "^\\s*\\)",
|
@@ -245,8 +248,8 @@
|
|
245
248
|
]
|
246
249
|
},
|
247
250
|
"regexp_escaped_char": {
|
248
|
-
"match": "\\\\
|
249
|
-
"name": "
|
251
|
+
"match": "\\\\",
|
252
|
+
"name": "constant.character.escape.backslash.clojure"
|
250
253
|
},
|
251
254
|
"set": {
|
252
255
|
"begin": "(\\#\\{)",
|
@@ -332,6 +335,9 @@
|
|
332
335
|
{
|
333
336
|
"include": "#map"
|
334
337
|
},
|
338
|
+
{
|
339
|
+
"include": "#set"
|
340
|
+
},
|
335
341
|
{
|
336
342
|
"include": "#sexp"
|
337
343
|
},
|
@@ -1,89 +1,78 @@
|
|
1
1
|
{
|
2
|
-
"
|
2
|
+
"name": "Dockerfile",
|
3
|
+
"file_extensions": [
|
3
4
|
"Dockerfile"
|
4
5
|
],
|
5
|
-
"
|
6
|
-
"
|
7
|
-
|
8
|
-
|
9
|
-
"
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
"name": "keyword.other.special-method.dockerfile"
|
14
|
-
}
|
15
|
-
},
|
16
|
-
"match": "^\\s*(?:(ONBUILD)\\s+)?(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|VOLUME|USER|WORKDIR|COPY|LABEL|STOPSIGNAL|ARG)\\s"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"captures": {
|
20
|
-
"1": {
|
21
|
-
"name": "keyword.operator.dockerfile"
|
22
|
-
},
|
23
|
-
"2": {
|
24
|
-
"name": "keyword.other.special-method.dockerfile"
|
25
|
-
}
|
26
|
-
},
|
27
|
-
"match": "^\\s*(?:(ONBUILD)\\s+)?(CMD|ENTRYPOINT)\\s"
|
28
|
-
},
|
29
|
-
{
|
30
|
-
"begin": "\"",
|
31
|
-
"beginCaptures": {
|
32
|
-
"1": {
|
33
|
-
"name": "punctuation.definition.string.begin.dockerfile"
|
34
|
-
}
|
35
|
-
},
|
36
|
-
"end": "\"",
|
37
|
-
"endCaptures": {
|
38
|
-
"1": {
|
39
|
-
"name": "punctuation.definition.string.end.dockerfile"
|
6
|
+
"scope": "source.dockerfile",
|
7
|
+
"contexts": {
|
8
|
+
"main": [
|
9
|
+
{
|
10
|
+
"match": "^\\s*(?:(ONBUILD)\\s+)?(ADD|ARG|COPY|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)\\s",
|
11
|
+
"captures": {
|
12
|
+
"1": "keyword.control.dockerfile",
|
13
|
+
"2": "keyword.other.special-method.dockerfile"
|
40
14
|
}
|
41
15
|
},
|
42
|
-
|
43
|
-
|
44
|
-
{
|
45
|
-
"
|
46
|
-
"
|
47
|
-
}
|
48
|
-
]
|
49
|
-
},
|
50
|
-
{
|
51
|
-
"begin": "'",
|
52
|
-
"beginCaptures": {
|
53
|
-
"1": {
|
54
|
-
"name": "punctuation.definition.string.begin.dockerfile"
|
16
|
+
{
|
17
|
+
"match": "^\\s*(?:(ONBUILD)\\s+)?(CMD|ENTRYPOINT)\\s",
|
18
|
+
"captures": {
|
19
|
+
"1": "keyword.operator.dockerfile",
|
20
|
+
"2": "keyword.other.special-method.dockerfile"
|
55
21
|
}
|
56
22
|
},
|
57
|
-
|
58
|
-
|
59
|
-
"
|
60
|
-
"
|
61
|
-
}
|
62
|
-
},
|
63
|
-
"name": "string.quoted.single.dockerfile",
|
64
|
-
"patterns": [
|
65
|
-
{
|
66
|
-
"match": "\\\\.",
|
67
|
-
"name": "constant.character.escaped.dockerfile"
|
68
|
-
}
|
69
|
-
]
|
70
|
-
},
|
71
|
-
{
|
72
|
-
"captures": {
|
73
|
-
"1": {
|
74
|
-
"name": "punctuation.whitespace.comment.leading.dockerfile"
|
23
|
+
{
|
24
|
+
"match": "\"",
|
25
|
+
"captures": {
|
26
|
+
"1": "punctuation.definition.string.begin.dockerfile"
|
75
27
|
},
|
76
|
-
"
|
77
|
-
|
28
|
+
"push": [
|
29
|
+
{
|
30
|
+
"meta_scope": "string.quoted.double.dockerfile"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"match": "\"",
|
34
|
+
"captures": {
|
35
|
+
"1": "punctuation.definition.string.end.dockerfile"
|
36
|
+
},
|
37
|
+
"pop": true
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"match": "\\\\.",
|
41
|
+
"scope": "constant.character.escaped.dockerfile"
|
42
|
+
}
|
43
|
+
]
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"match": "'",
|
47
|
+
"captures": {
|
48
|
+
"1": "punctuation.definition.string.begin.dockerfile"
|
78
49
|
},
|
79
|
-
"
|
80
|
-
|
81
|
-
|
50
|
+
"push": [
|
51
|
+
{
|
52
|
+
"meta_scope": "string.quoted.single.dockerfile"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"match": "'",
|
56
|
+
"captures": {
|
57
|
+
"1": "punctuation.definition.string.end.dockerfile"
|
58
|
+
},
|
59
|
+
"pop": true
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"match": "\\\\.",
|
63
|
+
"scope": "constant.character.escaped.dockerfile"
|
64
|
+
}
|
65
|
+
]
|
82
66
|
},
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
67
|
+
{
|
68
|
+
"match": "^(\\s*)((#).*$\\n?)",
|
69
|
+
"comment": "comment.line",
|
70
|
+
"captures": {
|
71
|
+
"1": "punctuation.whitespace.comment.leading.dockerfile",
|
72
|
+
"2": "comment.line.number-sign.dockerfile",
|
73
|
+
"3": "punctuation.definition.comment.dockerfile"
|
74
|
+
}
|
75
|
+
}
|
76
|
+
]
|
77
|
+
}
|
89
78
|
}
|
data/grammars/source.elm.json
CHANGED
@@ -1,381 +1,22 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
|
4
|
-
|
5
|
-
"
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
"
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
},
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"begin": "^\\b((effect|port)\\s+)?(module)\\s+",
|
25
|
-
"beginCaptures": {
|
26
|
-
"1": {
|
27
|
-
"name": "keyword.other.elm"
|
28
|
-
},
|
29
|
-
"3": {
|
30
|
-
"name": "keyword.other.elm"
|
31
|
-
}
|
32
|
-
},
|
33
|
-
"end": "$|;",
|
34
|
-
"endCaptures": {
|
35
|
-
"1": {
|
36
|
-
"name": "keyword.other.elm"
|
37
|
-
}
|
38
|
-
},
|
39
|
-
"name": "meta.declaration.module.elm",
|
40
|
-
"patterns": [
|
41
|
-
{
|
42
|
-
"include": "#module_name"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"begin": "(where)\\s*\\{",
|
46
|
-
"beginCaptures": {
|
47
|
-
"1": {
|
48
|
-
"name": "keyword.other.elm"
|
49
|
-
}
|
50
|
-
},
|
51
|
-
"end": "\\}",
|
52
|
-
"patterns": [
|
53
|
-
{
|
54
|
-
"include": "#type_signature"
|
55
|
-
}
|
56
|
-
]
|
57
|
-
},
|
58
|
-
{
|
59
|
-
"match": "(exposing)",
|
60
|
-
"name": "keyword.other.elm"
|
61
|
-
},
|
62
|
-
{
|
63
|
-
"include": "#module_exports"
|
64
|
-
},
|
65
|
-
{
|
66
|
-
"match": "(where)",
|
67
|
-
"name": "keyword.other.elm"
|
68
|
-
},
|
69
|
-
{
|
70
|
-
"match": "[a-z]+",
|
71
|
-
"name": "invalid"
|
72
|
-
}
|
73
|
-
]
|
74
|
-
},
|
75
|
-
{
|
76
|
-
"begin": "^\\b(import)\\s+((open)\\s+)?",
|
77
|
-
"beginCaptures": {
|
78
|
-
"1": {
|
79
|
-
"name": "keyword.other.elm"
|
80
|
-
},
|
81
|
-
"3": {
|
82
|
-
"name": "invalid"
|
83
|
-
}
|
84
|
-
},
|
85
|
-
"end": "($|;)",
|
86
|
-
"name": "meta.import.elm",
|
87
|
-
"patterns": [
|
88
|
-
{
|
89
|
-
"match": "(as|exposing)",
|
90
|
-
"name": "keyword.import.elm"
|
91
|
-
},
|
92
|
-
{
|
93
|
-
"include": "#module_name"
|
94
|
-
},
|
95
|
-
{
|
96
|
-
"include": "#module_exports"
|
97
|
-
}
|
98
|
-
]
|
99
|
-
},
|
100
|
-
{
|
101
|
-
"begin": "(\\[)(glsl)(\\|)",
|
102
|
-
"beginCaptures": {
|
103
|
-
"1": {
|
104
|
-
"name": "keyword.other.elm"
|
105
|
-
},
|
106
|
-
"2": {
|
107
|
-
"name": "support.function.prelude.elm"
|
108
|
-
},
|
109
|
-
"3": {
|
110
|
-
"name": "keyword.other.elm"
|
111
|
-
}
|
112
|
-
},
|
113
|
-
"end": "(\\|\\])",
|
114
|
-
"endCaptures": {
|
115
|
-
"1": {
|
116
|
-
"name": "keyword.other.elm"
|
117
|
-
}
|
118
|
-
},
|
119
|
-
"name": "entity.glsl.elm",
|
120
|
-
"patterns": [
|
121
|
-
{
|
122
|
-
"include": "source.glsl"
|
123
|
-
}
|
124
|
-
]
|
125
|
-
},
|
126
|
-
{
|
127
|
-
"match": "\\b(type alias|type|case|of|let|in|as)\\s+",
|
128
|
-
"name": "keyword.other.elm"
|
129
|
-
},
|
130
|
-
{
|
131
|
-
"match": "\\b(if|then|else)\\s+",
|
132
|
-
"name": "keyword.control.elm"
|
133
|
-
},
|
134
|
-
{
|
135
|
-
"comment": "Floats are always decimal",
|
136
|
-
"match": "\\b([0-9]+\\.[0-9]+([eE][+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+)\\b",
|
137
|
-
"name": "constant.numeric.float.elm"
|
138
|
-
},
|
139
|
-
{
|
140
|
-
"match": "\\b([0-9]+)\\b",
|
141
|
-
"name": "constant.numeric.elm"
|
142
|
-
},
|
143
|
-
{
|
144
|
-
"begin": "\"\"\"",
|
145
|
-
"beginCaptures": {
|
146
|
-
"0": {
|
147
|
-
"name": "punctuation.definition.string.begin.elm"
|
148
|
-
}
|
149
|
-
},
|
150
|
-
"end": "\"\"\"",
|
151
|
-
"endCaptures": {
|
152
|
-
"0": {
|
153
|
-
"name": "punctuation.definition.string.end.elm"
|
154
|
-
}
|
155
|
-
},
|
156
|
-
"name": "string.quoted.double.elm",
|
157
|
-
"patterns": [
|
158
|
-
{
|
159
|
-
"match": "\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\'\\&])",
|
160
|
-
"name": "constant.character.escape.elm"
|
161
|
-
},
|
162
|
-
{
|
163
|
-
"match": "\\^[A-Z@\\[\\]\\\\\\^_]",
|
164
|
-
"name": "constant.character.escape.control.elm"
|
165
|
-
}
|
166
|
-
]
|
167
|
-
},
|
168
|
-
{
|
169
|
-
"begin": "\"",
|
170
|
-
"beginCaptures": {
|
171
|
-
"0": {
|
172
|
-
"name": "punctuation.definition.string.begin.elm"
|
173
|
-
}
|
174
|
-
},
|
175
|
-
"end": "\"",
|
176
|
-
"endCaptures": {
|
177
|
-
"0": {
|
178
|
-
"name": "punctuation.definition.string.end.elm"
|
179
|
-
}
|
180
|
-
},
|
181
|
-
"name": "string.quoted.double.elm",
|
182
|
-
"patterns": [
|
183
|
-
{
|
184
|
-
"match": "\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&])",
|
185
|
-
"name": "constant.character.escape.elm"
|
186
|
-
},
|
187
|
-
{
|
188
|
-
"match": "\\^[A-Z@\\[\\]\\\\\\^_]",
|
189
|
-
"name": "constant.character.escape.control.elm"
|
190
|
-
}
|
191
|
-
]
|
192
|
-
},
|
193
|
-
{
|
194
|
-
"captures": {
|
195
|
-
"1": {
|
196
|
-
"name": "punctuation.definition.string.begin.elm"
|
197
|
-
},
|
198
|
-
"2": {
|
199
|
-
"name": "constant.character.escape.elm"
|
200
|
-
},
|
201
|
-
"3": {
|
202
|
-
"name": "punctuation.definition.string.end.elm"
|
203
|
-
}
|
204
|
-
},
|
205
|
-
"match": "(?x)\n(')\n(?:\n\t[\\ -\\[\\]-~]\t\t\t\t\t\t\t\t# Basic Char\n | (\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE\n\t\t|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS\n\t\t|US|SP|DEL|[abfnrtv\\\\\\\"'\\&]))\t\t# Escapes\n | (\\^[A-Z@\\[\\]\\\\\\^_])\t\t\t\t\t\t# Control Chars\n)\n(')",
|
206
|
-
"name": "string.quoted.single.elm"
|
207
|
-
},
|
208
|
-
{
|
209
|
-
"begin": "^(port\\s+)?([a-z_][a-zA-Z0-9_']*|\\([|!%$+\\-.,=</>]+\\))\\s*((:)([:]+)?)",
|
210
|
-
"beginCaptures": {
|
211
|
-
"1": {
|
212
|
-
"name": "keyword.other.port.elm"
|
213
|
-
},
|
214
|
-
"2": {
|
215
|
-
"name": "entity.name.function.elm"
|
216
|
-
},
|
217
|
-
"4": {
|
218
|
-
"name": "keyword.other.colon.elm"
|
219
|
-
},
|
220
|
-
"5": {
|
221
|
-
"name": "invalid"
|
222
|
-
}
|
223
|
-
},
|
224
|
-
"end": "$\\n?",
|
225
|
-
"name": "meta.function.type-declaration.elm",
|
226
|
-
"patterns": [
|
227
|
-
{
|
228
|
-
"include": "#type_signature"
|
229
|
-
}
|
230
|
-
]
|
231
|
-
},
|
232
|
-
{
|
233
|
-
"match": "\\bport\\s+",
|
234
|
-
"name": "keyword.other.port.elm"
|
235
|
-
},
|
236
|
-
{
|
237
|
-
"match": "\\b[A-Z]\\w*\\b",
|
238
|
-
"name": "constant.other.elm"
|
239
|
-
},
|
240
|
-
{
|
241
|
-
"include": "#comments"
|
242
|
-
},
|
243
|
-
{
|
244
|
-
"match": "^[a-z][A-Za-z0-9_']*\\s+",
|
245
|
-
"name": "entity.name.function.elm"
|
246
|
-
},
|
247
|
-
{
|
248
|
-
"include": "#infix_op"
|
249
|
-
},
|
250
|
-
{
|
251
|
-
"match": "[|!%$?~+:\\-.=</>&\\\\*^]+",
|
252
|
-
"name": "keyword.operator.elm"
|
253
|
-
},
|
254
|
-
{
|
255
|
-
"captures": {
|
256
|
-
"1": {
|
257
|
-
"name": "support.function.delimiter.elm"
|
258
|
-
}
|
259
|
-
},
|
260
|
-
"match": "([\\[\\]\\{\\},])",
|
261
|
-
"name": "constant.language.delimiter.elm"
|
262
|
-
},
|
263
|
-
{
|
264
|
-
"match": "([\\(\\)])",
|
265
|
-
"name": "keyword.other.parenthesis.elm"
|
266
|
-
}
|
267
|
-
],
|
268
|
-
"repository": {
|
269
|
-
"block_comment": {
|
270
|
-
"applyEndPatternLast": 1,
|
271
|
-
"begin": "\\{-(?!#)",
|
272
|
-
"captures": {
|
273
|
-
"0": {
|
274
|
-
"name": "punctuation.definition.comment.elm"
|
275
|
-
}
|
276
|
-
},
|
277
|
-
"end": "-\\}",
|
278
|
-
"name": "comment.block.elm",
|
279
|
-
"patterns": [
|
280
|
-
{
|
281
|
-
"include": "#block_comment"
|
282
|
-
}
|
283
|
-
]
|
284
|
-
},
|
285
|
-
"comments": {
|
286
|
-
"patterns": [
|
287
|
-
{
|
288
|
-
"captures": {
|
289
|
-
"1": {
|
290
|
-
"name": "punctuation.definition.comment.elm"
|
291
|
-
}
|
292
|
-
},
|
293
|
-
"match": "(--).*$\\n?",
|
294
|
-
"name": "comment.line.double-dash.elm"
|
295
|
-
},
|
296
|
-
{
|
297
|
-
"include": "#block_comment"
|
298
|
-
}
|
299
|
-
]
|
300
|
-
},
|
301
|
-
"infix_op": {
|
302
|
-
"match": "(\\([|!%$+:\\-.=</>]+\\)|\\(,+\\))",
|
303
|
-
"name": "entity.name.function.infix.elm"
|
304
|
-
},
|
305
|
-
"module_exports": {
|
306
|
-
"begin": "\\(",
|
307
|
-
"end": "\\)",
|
308
|
-
"name": "meta.declaration.exports.elm",
|
309
|
-
"patterns": [
|
310
|
-
{
|
311
|
-
"match": "\\b[a-z][a-zA-Z_'0-9]*",
|
312
|
-
"name": "entity.name.function.elm"
|
313
|
-
},
|
314
|
-
{
|
315
|
-
"match": "\\b[A-Z][A-Za-z_'0-9]*",
|
316
|
-
"name": "storage.type.elm"
|
317
|
-
},
|
318
|
-
{
|
319
|
-
"match": ",",
|
320
|
-
"name": "punctuation.separator.comma.elm"
|
321
|
-
},
|
322
|
-
{
|
323
|
-
"include": "#infix_op"
|
324
|
-
},
|
325
|
-
{
|
326
|
-
"comment": "So named because I don't know what to call this.",
|
327
|
-
"match": "\\(.*?\\)",
|
328
|
-
"name": "meta.other.unknown.elm"
|
329
|
-
}
|
330
|
-
]
|
331
|
-
},
|
332
|
-
"module_name": {
|
333
|
-
"match": "[A-Z][A-Za-z._']*",
|
334
|
-
"name": "support.other.module.elm"
|
335
|
-
},
|
336
|
-
"type_signature": {
|
337
|
-
"patterns": [
|
338
|
-
{
|
339
|
-
"captures": {
|
340
|
-
"1": {
|
341
|
-
"name": "entity.other.inherited-class.elm"
|
342
|
-
},
|
343
|
-
"2": {
|
344
|
-
"name": "variable.other.generic-type.elm"
|
345
|
-
},
|
346
|
-
"3": {
|
347
|
-
"name": "keyword.other.big-arrow.elm"
|
348
|
-
}
|
349
|
-
},
|
350
|
-
"match": "\\(\\s*([A-Z][A-Za-z]*)\\s+([a-z][A-Za-z_']*)\\)\\s*(=>)",
|
351
|
-
"name": "meta.class-constraint.elm"
|
352
|
-
},
|
353
|
-
{
|
354
|
-
"match": "->",
|
355
|
-
"name": "keyword.other.arrow.elm"
|
356
|
-
},
|
357
|
-
{
|
358
|
-
"match": "=>",
|
359
|
-
"name": "keyword.other.big-arrow.elm"
|
360
|
-
},
|
361
|
-
{
|
362
|
-
"match": "\\b[a-z][a-zA-Z0-9_']*\\b",
|
363
|
-
"name": "variable.other.generic-type.elm"
|
364
|
-
},
|
365
|
-
{
|
366
|
-
"match": "\\b[A-Z][a-zA-Z0-9_']*\\b",
|
367
|
-
"name": "storage.type.elm"
|
368
|
-
},
|
369
|
-
{
|
370
|
-
"match": "\\(\\)",
|
371
|
-
"name": "support.constant.unit.elm"
|
372
|
-
},
|
373
|
-
{
|
374
|
-
"include": "#comments"
|
375
|
-
}
|
376
|
-
]
|
377
|
-
}
|
378
|
-
},
|
379
|
-
"scopeName": "source.elm",
|
380
|
-
"uuid": "2cb90e5e-6e98-456d-9a8a-b59935dbc4b0"
|
2
|
+
"name": "Metadata",
|
3
|
+
"uuid": "64598216-cf92-4b00-961f-2b1478921c3e",
|
4
|
+
"scope": "source.elm",
|
5
|
+
"settings": {
|
6
|
+
"increaseIndentPattern": "(?x)\n ^.*\n (=\n |[|!%$?~+:\\-.=</>&\\\\*^]+\n |\\bthen\n |\\belse\n |\\bof\n )\n \\s*$",
|
7
|
+
"shellVariables": [
|
8
|
+
{
|
9
|
+
"name": "TM_COMMENT_START",
|
10
|
+
"value": "--"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"name": "TM_COMMENT_START_2",
|
14
|
+
"value": "{-"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"name": "TM_COMMENT_END_2",
|
18
|
+
"value": "-}"
|
19
|
+
}
|
20
|
+
]
|
21
|
+
}
|
381
22
|
}
|