github-linguist 7.3.1 → 7.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/grammars/etc.json +14 -0
- data/grammars/source.abap.json +13 -2
- data/grammars/source.ats.json +87 -17
- data/grammars/source.ballerina.json +5 -1
- data/grammars/source.clojure.json +8 -8
- data/grammars/source.css.json +39 -0
- data/grammars/source.dosbox-conf.json +97 -0
- data/grammars/source.js.json +0 -8
- data/grammars/source.julia.json +36 -4
- data/grammars/source.matlab.json +26 -15
- data/grammars/source.mcfunction-snapshot.json +600 -0
- data/grammars/source.mcfunction.json +24 -24
- data/grammars/source.sas.json +1 -1
- data/grammars/source.scala.json +12 -1
- data/grammars/source.sqf.json +1 -2
- data/grammars/source.ts.json +122 -19
- data/grammars/source.tsx.json +122 -19
- data/grammars/source.zap.json +260 -0
- data/grammars/source.zil.json +750 -0
- data/grammars/text.html.handlebars.json +1 -1
- data/grammars/text.rtf.json +7 -2
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/heuristics.yml +1 -1
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +20 -0
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/repository.rb +1 -1
- data/lib/linguist/samples.json +561 -32
- data/lib/linguist/shebang.rb +1 -1
- data/lib/linguist/vendor.yml +5 -2
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fd3201b062e25699ef1953bb75bb31455120b7d6c2c7689564a98d96a933b3da
|
4
|
+
data.tar.gz: e200f00dbc2d5b4328e1e5220e643689d815bf6f9bcc5937bd93959293b10f7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 495e7265faf020f90d0fb18b03d71710f29ef76fd41c55089299063919cad982610995a033e4e4589b90a9646f9181b6e02789cdf31fb2a6cf35b61c8b8504b4
|
7
|
+
data.tar.gz: 9c524474881806301b778388aae07180b708228f4b59c308b52cece0c5ae55eb70a6039ecbed4dbf7242e31578e8858cec00916a00d987bbf2e36038a0836198
|
data/grammars/etc.json
CHANGED
@@ -34,6 +34,10 @@
|
|
34
34
|
"name": "string.unquoted.bareword",
|
35
35
|
"match": "[^\"\\s][\\S]*"
|
36
36
|
},
|
37
|
+
"bool": {
|
38
|
+
"name": "constant.logical.bool.boolean.${1:/downcase}",
|
39
|
+
"match": "\\b(true|false|TRUE|FALSE)\\b"
|
40
|
+
},
|
37
41
|
"colon": {
|
38
42
|
"name": "keyword.operator.assignment.key-value.colon",
|
39
43
|
"match": ":"
|
@@ -101,6 +105,16 @@
|
|
101
105
|
"name": "constant.numeric.integer.int.decimal.dec",
|
102
106
|
"match": "[-+]?[0-9]+"
|
103
107
|
},
|
108
|
+
"num": {
|
109
|
+
"patterns": [
|
110
|
+
{
|
111
|
+
"include": "#float"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"include": "#int"
|
115
|
+
}
|
116
|
+
]
|
117
|
+
},
|
104
118
|
"str": {
|
105
119
|
"patterns": [
|
106
120
|
{
|
data/grammars/source.abap.json
CHANGED
@@ -28,6 +28,10 @@
|
|
28
28
|
"name": "constant.numeric.abap",
|
29
29
|
"match": "\\b[0-9]+(\\b|\\.|,)"
|
30
30
|
},
|
31
|
+
{
|
32
|
+
"name": "storage.modifier.class.abap",
|
33
|
+
"match": "(?ix)(^|\\s+)((PUBLIC|PRIVATE|PROTECTED)\\sSECTION)(?=\\s+|:|\\.)"
|
34
|
+
},
|
31
35
|
{
|
32
36
|
"name": "string.interpolated.abap",
|
33
37
|
"begin": "(?\u003c!\\\\)(\\|)(.*?)",
|
@@ -182,7 +186,7 @@
|
|
182
186
|
"patterns": [
|
183
187
|
{
|
184
188
|
"name": "storage.modifier.form.abap",
|
185
|
-
"match": "(?ix)(?\u003c=^|\\s)(USING|TABLES|CHANGING)(?=\\s+|\\.)"
|
189
|
+
"match": "(?ix)(?\u003c=^|\\s)(USING|TABLES|CHANGING|RAISING)(?=\\s+|\\.)"
|
186
190
|
},
|
187
191
|
{
|
188
192
|
"include": "#abaptypes"
|
@@ -211,6 +215,9 @@
|
|
211
215
|
{
|
212
216
|
"include": "#abap_constants"
|
213
217
|
},
|
218
|
+
{
|
219
|
+
"include": "#reserved_names"
|
220
|
+
},
|
214
221
|
{
|
215
222
|
"include": "#operators"
|
216
223
|
},
|
@@ -233,7 +240,7 @@
|
|
233
240
|
"patterns": [
|
234
241
|
{
|
235
242
|
"name": "support.type.abap",
|
236
|
-
"match": "(?ix)\\s(abap_bool|
|
243
|
+
"match": "(?ix)\\s(abap_bool|string|xstring|any|clike|csequence|numeric|xsequence|c|n|i|p|f|d|t|x)(?=\\s|\\.|,)"
|
237
244
|
},
|
238
245
|
{
|
239
246
|
"name": "keyword.control.simple.abap",
|
@@ -305,6 +312,10 @@
|
|
305
312
|
"name": "keyword.operator.other.abap",
|
306
313
|
"match": "\\s(\u0026\u0026|\\?\\=)\\s"
|
307
314
|
},
|
315
|
+
"reserved_names": {
|
316
|
+
"name": "constant.language.abap",
|
317
|
+
"match": "(?ix)(?\u003c=\\s)(me|super)(?=\\s|\\.|,|-\u003e)"
|
318
|
+
},
|
308
319
|
"system_fields": {
|
309
320
|
"name": "variable.language.abap",
|
310
321
|
"match": "(?ix)\\b(sy-)(abcde|batch|binpt|calld|callr|colno|cpage|cprog|cucol|curow|datar|datlo|datum|dayst|dbcnt|dbnam|dbsysc|dyngr|dynnr|fdayw|fdpos|host|index|langu|ldbpg|lilli|linct|linno|linsz|lisel|listi|loopc|lsind|macol|mandt|marow|modno|msgid|msgli|msgno|msgty|msgv[1-4]|opsysc|pagno|pfkey|repid|saprl|scols|slset|spono|srows|staco|staro|stepl|subrc|sysid|tabix|tcode|tfill|timlo|title|tleng|tvar[0-9]|tzone|ucomm|uline|uname|uzeit|vline|wtitl|zonlo)(?=\\.|\\s)"
|
data/grammars/source.ats.json
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
"name": "ATS",
|
3
3
|
"scopeName": "source.ats",
|
4
4
|
"patterns": [
|
5
|
+
{
|
6
|
+
"include": "#quantifier_curly"
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"include": "#quantifier_square"
|
10
|
+
},
|
5
11
|
{
|
6
12
|
"include": "#block"
|
7
13
|
},
|
@@ -12,7 +18,10 @@
|
|
12
18
|
"include": "#comment_line"
|
13
19
|
},
|
14
20
|
{
|
15
|
-
"include": "#
|
21
|
+
"include": "#comment_block_c"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"include": "#comment_block_sml"
|
16
25
|
},
|
17
26
|
{
|
18
27
|
"include": "#embed"
|
@@ -21,13 +30,13 @@
|
|
21
30
|
"include": "#operators"
|
22
31
|
},
|
23
32
|
{
|
24
|
-
"include": "#
|
33
|
+
"include": "#quantifier_arrow"
|
25
34
|
},
|
26
35
|
{
|
27
|
-
"include": "#
|
36
|
+
"include": "#definition_function"
|
28
37
|
},
|
29
38
|
{
|
30
|
-
"include": "#
|
39
|
+
"include": "#definition_type"
|
31
40
|
},
|
32
41
|
{
|
33
42
|
"include": "#keywords"
|
@@ -35,6 +44,9 @@
|
|
35
44
|
{
|
36
45
|
"include": "#keywords_types"
|
37
46
|
},
|
47
|
+
{
|
48
|
+
"include": "#false_true"
|
49
|
+
},
|
38
50
|
{
|
39
51
|
"include": "#string"
|
40
52
|
},
|
@@ -49,12 +61,16 @@
|
|
49
61
|
},
|
50
62
|
{
|
51
63
|
"include": "#number"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"include": "#identifier"
|
52
67
|
}
|
53
68
|
],
|
54
69
|
"repository": {
|
55
70
|
"block": {
|
56
|
-
"
|
57
|
-
"
|
71
|
+
"name": "meta.block",
|
72
|
+
"begin": "(?\u003c=where|=|^|then|else|\\$rec|\\$rec_t|\\$rec_vt)(?:\\s*)\\{",
|
73
|
+
"end": "\\}",
|
58
74
|
"patterns": [
|
59
75
|
{
|
60
76
|
"include": "$self"
|
@@ -66,13 +82,19 @@
|
|
66
82
|
"name": "string.quoted.double",
|
67
83
|
"match": "(')([^\\\\]{0,1}|\\\\(\\\\|[abefpnrtv'\"?]|[0-3]\\d{0,2}|[4-7]\\d?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8}))(')"
|
68
84
|
},
|
69
|
-
"
|
85
|
+
"comment_block_c": {
|
86
|
+
"name": "comment.block",
|
87
|
+
"begin": "/\\*",
|
88
|
+
"end": "\\*/",
|
89
|
+
"applyEndPatternLast": true
|
90
|
+
},
|
91
|
+
"comment_block_sml": {
|
70
92
|
"name": "comment.block",
|
71
93
|
"begin": "\\(\\*",
|
72
94
|
"end": "\\*\\)",
|
73
95
|
"patterns": [
|
74
96
|
{
|
75
|
-
"include": "#
|
97
|
+
"include": "#comment_block_sml"
|
76
98
|
}
|
77
99
|
],
|
78
100
|
"applyEndPatternLast": true
|
@@ -82,7 +104,7 @@
|
|
82
104
|
"match": "//.*$"
|
83
105
|
},
|
84
106
|
"comment_rest": {
|
85
|
-
"name": "comment",
|
107
|
+
"name": "comment.block",
|
86
108
|
"begin": "////",
|
87
109
|
"end": ".\\z",
|
88
110
|
"patterns": [
|
@@ -92,18 +114,66 @@
|
|
92
114
|
],
|
93
115
|
"applyEndPatternLast": true
|
94
116
|
},
|
117
|
+
"definition_function": {
|
118
|
+
"name": "meta.function-definition",
|
119
|
+
"begin": "\\b(?:castfn|fn|fun|implement|implmnt|infixl|infixr|infix|overload|postfix|praxi|prfn|prfun|primplement|primplmnt|var)\\b",
|
120
|
+
"end": "\\b[a-zA-Z][a-zA-Z0-9_']*\\b",
|
121
|
+
"patterns": [
|
122
|
+
{
|
123
|
+
"include": "$self"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"beginCaptures": {
|
127
|
+
"0": {
|
128
|
+
"name": "keyword"
|
129
|
+
}
|
130
|
+
},
|
131
|
+
"endCaptures": {
|
132
|
+
"0": {
|
133
|
+
"name": "entity.name.function"
|
134
|
+
}
|
135
|
+
}
|
136
|
+
},
|
137
|
+
"definition_type": {
|
138
|
+
"name": "meta.type-definition",
|
139
|
+
"begin": "\\b(abstype|abst@ype|abst0pe|absvtype|absvt@ype|absvt0pe|absviewtype|absviewt@ype|absviewt0pe|absview|absprop|datatype|datavtype|dataviewtype|dataview|dataprop|datasort|sortdef|propdef|viewdef|viewtypedef|vtypedef|stadef|stacst|typedef)\\b",
|
140
|
+
"end": "\\b[a-zA-Z][a-zA-Z0-9_']*\\b",
|
141
|
+
"patterns": [
|
142
|
+
{
|
143
|
+
"include": "$self"
|
144
|
+
}
|
145
|
+
],
|
146
|
+
"beginCaptures": {
|
147
|
+
"0": {
|
148
|
+
"name": "keyword"
|
149
|
+
}
|
150
|
+
},
|
151
|
+
"endCaptures": {
|
152
|
+
"0": {
|
153
|
+
"name": "entity.name.type storage.type"
|
154
|
+
}
|
155
|
+
}
|
156
|
+
},
|
95
157
|
"embed": {
|
96
158
|
"name": "meta",
|
97
159
|
"begin": "(%{)",
|
98
160
|
"end": "(%})"
|
99
161
|
},
|
162
|
+
"false_true": {
|
163
|
+
"name": "constant.language.boolean",
|
164
|
+
"match": "\\b(?:false|true)\\b"
|
165
|
+
},
|
166
|
+
"identifier": {
|
167
|
+
"name": "identifier",
|
168
|
+
"match": "\\b[a-zA-Z][a-zA-Z0-9_']*\\b"
|
169
|
+
},
|
100
170
|
"keywords": {
|
101
171
|
"name": "keyword",
|
102
|
-
"match": "(\\#|\\$)(\\w+)|\\b(castfn|and|andalso|assume|as|begin|break|case(\\+|-)?|class|continue|dynload|dyn|else|end|exception|extern|fix|fn|for|fun|if|implement|implmnt|primplement|primplmnt|infixl|infixr|infix|in|lam|let|llam|local|macdef|macrodef|method|modprop|modtype|module|nonfix|object|of|op|or|orelse|overload|par|postfix|praxi|prefix|prfn|prfun|prval|rec|sif|staif|staload|stavar|sta|struct|symelim|symintr|then|try|union|val(\\+|-)?|var|when|where|while|withprop|withtype|withviewtype|withview|with)\\b"
|
172
|
+
"match": "(\\#|\\$)(\\w+)|\\b(castfn|and|andalso|assume|as|begin|break|case(\\+|-)?|class|continue|dynload|dyn|else|end|exception|extern|fix|fn|for|fun|if|implement|implmnt|primplement|primplmnt|infixl|infixr|infix|in|lam|let|llam|local|macdef|macrodef|method|modprop|modtype|module|nonfix|object|of|op|or|orelse|overload|par|postfix|praxi|prefix|prfn|prfun|prval|rec|scase|sif|stacst|staif|staload|stavar|sta|struct|symelim|symintr|then|try|union|val(\\+|-)?|var|when|where|while|withprop|withtype|withviewtype|withview|with)\\b"
|
103
173
|
},
|
104
174
|
"keywords_types": {
|
105
175
|
"name": "keyword",
|
106
|
-
"match": "(\\#|\\$)(\\w+)|\\b(abstype|abst@ype|abst0pe|absvtype|absvt@ype|absvt0pe|absviewtype|absviewt@ype|absviewt0pe|absview|absprop|datatype|datavtype|dataviewtype|dataview|dataprop|datasort|sortdef|propdef|viewdef|viewtypedef|vtypedef|stadef|typedef
|
176
|
+
"match": "(\\#|\\$)(\\w+)|\\b(abstype|abst@ype|abst0pe|absvtype|absvt@ype|absvt0pe|absviewtype|absviewt@ype|absviewt0pe|absview|absprop|datatype|datavtype|dataviewtype|dataview|dataprop|datasort|sortdef|propdef|viewdef|viewtypedef|vtypedef|stadef|typedef)\\b"
|
107
177
|
},
|
108
178
|
"number": {
|
109
179
|
"name": "constant.numeric",
|
@@ -119,14 +189,14 @@
|
|
119
189
|
"end": "\u003e"
|
120
190
|
},
|
121
191
|
"quantifier_curly": {
|
122
|
-
"name": "support.type",
|
123
|
-
"begin": "(
|
124
|
-
"end": "
|
192
|
+
"name": "support.type.quantifier.universal",
|
193
|
+
"begin": "\\{(?=[\\S])",
|
194
|
+
"end": "\\}"
|
125
195
|
},
|
126
196
|
"quantifier_square": {
|
127
|
-
"name": "support.type",
|
128
|
-
"begin": "(\\
|
129
|
-
"end": "
|
197
|
+
"name": "support.type.quantifier.existential",
|
198
|
+
"begin": "\\[(?=[\\S])",
|
199
|
+
"end": "\\]"
|
130
200
|
},
|
131
201
|
"records": {
|
132
202
|
"begin": "('|@)({)",
|
@@ -381,6 +381,10 @@
|
|
381
381
|
{
|
382
382
|
"include": "#functionReturns"
|
383
383
|
},
|
384
|
+
{
|
385
|
+
"name": "keyword.ballerina",
|
386
|
+
"match": "extern\\b"
|
387
|
+
},
|
384
388
|
{
|
385
389
|
"include": "#functionName"
|
386
390
|
},
|
@@ -485,7 +489,7 @@
|
|
485
489
|
},
|
486
490
|
{
|
487
491
|
"name": "keyword.other.ballerina",
|
488
|
-
"match": "\\b(import|version|public|private|attach|as|native|documentation|lock|new|record|limit|ascending|descending|check|start|done|untaint|onretry|oncommit|onabort|scope|compensate|compensation|primarykey|channel|abstract|extern|final|listener|remote|client|is|__init)\\b"
|
492
|
+
"match": "\\b(import|version|public|private|attach|as|native|documentation|lock|new|record|limit|ascending|descending|check|checkpanic|start|done|untaint|onretry|oncommit|onabort|scope|compensate|compensation|primarykey|channel|abstract|extern|final|listener|remote|client|is|__init)\\b"
|
489
493
|
},
|
490
494
|
{
|
491
495
|
"name": "keyword.other.siddhi.ballerina",
|
@@ -78,7 +78,7 @@
|
|
78
78
|
},
|
79
79
|
{
|
80
80
|
"name": "constant.numeric.arbitrary-radix.clojure",
|
81
|
-
"match": "(-?\\d+[rR]
|
81
|
+
"match": "(-?\\d+[rR]\\w+)"
|
82
82
|
},
|
83
83
|
{
|
84
84
|
"name": "constant.numeric.hexadecimal.clojure",
|
@@ -117,17 +117,17 @@
|
|
117
117
|
"patterns": [
|
118
118
|
{
|
119
119
|
"name": "storage.control.clojure",
|
120
|
-
"match": "(?\u003c=(\\s|\\(|\\[|\\{))(if(-[
|
120
|
+
"match": "(?\u003c=(\\s|\\(|\\[|\\{))(if(-[-\\p{Ll}\\?]*)?|when(-[-\\p{Ll}]*)?|for(-[-\\p{Ll}]*)?|cond|do|let(-[-\\p{Ll}\\?]*)?|binding|loop|recur|fn|throw[\\p{Ll}\\-]*|try|catch|finally|([\\p{Ll}]*case))(?=(\\s|\\)|\\]|\\}))"
|
121
121
|
},
|
122
122
|
{
|
123
123
|
"name": "keyword.control.clojure",
|
124
|
-
"match": "(?\u003c=(\\s|\\(|\\[|\\{))(declare-?|(in-)?ns|import|use|require|load|compile|(def[
|
124
|
+
"match": "(?\u003c=(\\s|\\(|\\[|\\{))(declare-?|(in-)?ns|import|use|require|load|compile|(def[\\p{Ll}\\-]*))(?=(\\s|\\)|\\]|\\}))"
|
125
125
|
}
|
126
126
|
]
|
127
127
|
},
|
128
128
|
"keyword": {
|
129
129
|
"name": "constant.keyword.clojure",
|
130
|
-
"match": "(?\u003c=(\\s|\\(|\\[|\\{)):[
|
130
|
+
"match": "(?\u003c=(\\s|\\(|\\[|\\{)):[\\w\\#\\.\\-\\_\\:\\+\\=\\\u003e\\\u003c\\/\\!\\?\\*]+(?=(\\s|\\)|\\]|\\}|\\,))"
|
131
131
|
},
|
132
132
|
"map": {
|
133
133
|
"name": "meta.map.clojure",
|
@@ -195,7 +195,7 @@
|
|
195
195
|
"namespace-symbol": {
|
196
196
|
"patterns": [
|
197
197
|
{
|
198
|
-
"match": "([
|
198
|
+
"match": "([\\p{L}\\.\\-\\_\\+\\=\\\u003e\\\u003c\\!\\?\\*][\\w\\.\\-\\_\\:\\+\\=\\\u003e\\\u003c\\!\\?\\*\\d]*)/",
|
199
199
|
"captures": {
|
200
200
|
"1": {
|
201
201
|
"name": "meta.symbol.namespace.clojure"
|
@@ -295,7 +295,7 @@
|
|
295
295
|
},
|
296
296
|
{
|
297
297
|
"name": "entity.global.clojure",
|
298
|
-
"match": "([
|
298
|
+
"match": "([\\p{L}\\.\\-\\_\\+\\=\\\u003e\\\u003c\\!\\?\\*][\\w\\.\\-\\_\\:\\+\\=\\\u003e\\\u003c\\!\\?\\*\\d]*)"
|
299
299
|
},
|
300
300
|
{
|
301
301
|
"include": "$self"
|
@@ -394,13 +394,13 @@
|
|
394
394
|
"patterns": [
|
395
395
|
{
|
396
396
|
"name": "meta.symbol.clojure",
|
397
|
-
"match": "([
|
397
|
+
"match": "([\\p{L}\\.\\-\\_\\+\\=\\\u003e\\\u003c\\!\\?\\*][\\w\\.\\-\\_\\:\\+\\=\\\u003e\\\u003c\\!\\?\\*\\d]*)"
|
398
398
|
}
|
399
399
|
]
|
400
400
|
},
|
401
401
|
"var": {
|
402
402
|
"name": "meta.var.clojure",
|
403
|
-
"match": "(?\u003c=(\\s|\\(|\\[|\\{)\\#)'[
|
403
|
+
"match": "(?\u003c=(\\s|\\(|\\[|\\{)\\#)'[\\w\\.\\-\\_\\:\\+\\=\\\u003e\\\u003c\\/\\!\\?\\*]+(?=(\\s|\\)|\\]|\\}))"
|
404
404
|
},
|
405
405
|
"vector": {
|
406
406
|
"name": "meta.vector.clojure",
|
data/grammars/source.css.json
CHANGED
@@ -598,6 +598,45 @@
|
|
598
598
|
"name": "punctuation.terminator.rule.css"
|
599
599
|
}
|
600
600
|
}
|
601
|
+
},
|
602
|
+
{
|
603
|
+
"begin": "(?i)(?=@[\\w-]+(\\s|\\(|/\\*|$))",
|
604
|
+
"end": "(?\u003c=})(?!\\G)",
|
605
|
+
"patterns": [
|
606
|
+
{
|
607
|
+
"name": "meta.at-rule.header.css",
|
608
|
+
"begin": "(?i)\\G(@)[\\w-]+",
|
609
|
+
"end": "(?=\\s*[{;])",
|
610
|
+
"beginCaptures": {
|
611
|
+
"0": {
|
612
|
+
"name": "keyword.control.at-rule.css"
|
613
|
+
},
|
614
|
+
"1": {
|
615
|
+
"name": "punctuation.definition.keyword.css"
|
616
|
+
}
|
617
|
+
}
|
618
|
+
},
|
619
|
+
{
|
620
|
+
"name": "meta.at-rule.body.css",
|
621
|
+
"begin": "{",
|
622
|
+
"end": "}",
|
623
|
+
"patterns": [
|
624
|
+
{
|
625
|
+
"include": "$self"
|
626
|
+
}
|
627
|
+
],
|
628
|
+
"beginCaptures": {
|
629
|
+
"0": {
|
630
|
+
"name": "punctuation.section.begin.bracket.curly.css"
|
631
|
+
}
|
632
|
+
},
|
633
|
+
"endCaptures": {
|
634
|
+
"0": {
|
635
|
+
"name": "punctuation.section.end.bracket.curly.css"
|
636
|
+
}
|
637
|
+
}
|
638
|
+
}
|
639
|
+
]
|
601
640
|
}
|
602
641
|
]
|
603
642
|
},
|
@@ -0,0 +1,97 @@
|
|
1
|
+
{
|
2
|
+
"name": "DOSBox Configuration",
|
3
|
+
"scopeName": "source.dosbox-conf",
|
4
|
+
"patterns": [
|
5
|
+
{
|
6
|
+
"include": "#main"
|
7
|
+
}
|
8
|
+
],
|
9
|
+
"repository": {
|
10
|
+
"autoexec": {
|
11
|
+
"contentName": "meta.embedded.source.batchfile",
|
12
|
+
"begin": "^\\s*((\\[)autoexec(\\]))\\s*$",
|
13
|
+
"end": "(?=^\\[.*\\])",
|
14
|
+
"patterns": [
|
15
|
+
{
|
16
|
+
"include": "source.batchfile"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"beginCaptures": {
|
20
|
+
"1": {
|
21
|
+
"name": "entity.name.section.group-title.dosbox-conf"
|
22
|
+
},
|
23
|
+
"2": {
|
24
|
+
"name": "punctuation.definition.entity.begin.dosbox-conf"
|
25
|
+
},
|
26
|
+
"3": {
|
27
|
+
"name": "punctuation.definition.entity.end.dosbox-conf"
|
28
|
+
}
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"main": {
|
32
|
+
"patterns": [
|
33
|
+
{
|
34
|
+
"include": "etc#comment"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"include": "#autoexec"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"include": "#section"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"include": "#setting"
|
44
|
+
}
|
45
|
+
]
|
46
|
+
},
|
47
|
+
"section": {
|
48
|
+
"match": "^\\s*((\\[).*(\\]))\\s*$",
|
49
|
+
"captures": {
|
50
|
+
"1": {
|
51
|
+
"name": "entity.name.section.group-title.dosbox-conf"
|
52
|
+
},
|
53
|
+
"2": {
|
54
|
+
"name": "punctuation.definition.entity.begin.dosbox-conf"
|
55
|
+
},
|
56
|
+
"3": {
|
57
|
+
"name": "punctuation.definition.entity.end.dosbox-conf"
|
58
|
+
}
|
59
|
+
}
|
60
|
+
},
|
61
|
+
"setting": {
|
62
|
+
"name": "meta.setting.dosbox-conf",
|
63
|
+
"begin": "^\\s*([^#=\\s]+)\\s*(=)",
|
64
|
+
"end": "$|(?=#)",
|
65
|
+
"patterns": [
|
66
|
+
{
|
67
|
+
"include": "#values"
|
68
|
+
}
|
69
|
+
],
|
70
|
+
"beginCaptures": {
|
71
|
+
"1": {
|
72
|
+
"name": "keyword.other.setting.dosbox-conf"
|
73
|
+
},
|
74
|
+
"2": {
|
75
|
+
"name": "punctuation.separator.key-value.dosbox-conf"
|
76
|
+
}
|
77
|
+
}
|
78
|
+
},
|
79
|
+
"values": {
|
80
|
+
"patterns": [
|
81
|
+
{
|
82
|
+
"name": "support.constant.language.auto.dosbox-conf",
|
83
|
+
"match": "\\bauto\\b"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"include": "etc#num"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"include": "etc#bool"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"include": "etc#bareword"
|
93
|
+
}
|
94
|
+
]
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|