github-linguist 4.8.0 → 4.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1644,7 +1644,7 @@
1644
1644
  ]
1645
1645
  },
1646
1646
  {
1647
- "match": "(?x) (\\$|@|%|&) (\\.|\\*|:|!|\\^|~|=|\\?)? ( (?:\\p{Alpha}) (?: [a-zA-Z0-9_À-ÿ\\$]| [\\-'][a-zA-Z_À-ÿ\\$] )* )",
1647
+ "match": "(?x) (\\$|@|%|&) (\\.|\\*|:|!|\\^|~|=|\\?)? ( (?:[a-zA-Z]) (?: [a-zA-Z0-9_À-ÿ\\$]| [\\-'][a-zA-Z_À-ÿ\\$] )* )",
1648
1648
  "captures": {
1649
1649
  "1": {
1650
1650
  "name": "variable.other.identifier.sigil.perl6fe"
@@ -11,18 +11,8 @@
11
11
  "include": "#line_comment"
12
12
  },
13
13
  {
14
- "begin": "^\\s*(/\\*)",
15
- "beginCaptures": {
16
- "1": {
17
- "name": "punctuation.definition.comment.begin.roole"
18
- }
19
- },
14
+ "begin": "^\\s*/\\*",
20
15
  "end": "\\*/",
21
- "endCaptures": {
22
- "0": {
23
- "name": "punctuation.definition.comment.end.roole"
24
- }
25
- },
26
16
  "name": "comment.block.puppet"
27
17
  },
28
18
  {
@@ -38,6 +28,18 @@
38
28
  "end": "(?={)",
39
29
  "name": "meta.definition.class.puppet",
40
30
  "patterns": [
31
+ {
32
+ "include": "#variables"
33
+ },
34
+ {
35
+ "include": "#constants"
36
+ },
37
+ {
38
+ "include": "#strings"
39
+ },
40
+ {
41
+ "include": "#numbers"
42
+ },
41
43
  {
42
44
  "begin": "\\b(inherits)\\b\\s+",
43
45
  "captures": {
@@ -126,7 +128,7 @@
126
128
  "name": "meta.definition.resource.puppet"
127
129
  },
128
130
  {
129
- "match": "\\b(case|if|else)(?!::)",
131
+ "match": "\\b(case|if|unless|else|elsif)(?!::)",
130
132
  "name": "keyword.control.puppet"
131
133
  },
132
134
  {
@@ -139,6 +141,9 @@
139
141
  {
140
142
  "include": "#variable"
141
143
  },
144
+ {
145
+ "include": "#constants"
146
+ },
142
147
  {
143
148
  "begin": "(?i)\\b(import|include)\\b\\s*",
144
149
  "beginCaptures": {
@@ -150,7 +155,7 @@
150
155
  "name": "meta.include.puppet"
151
156
  },
152
157
  {
153
- "match": "\\b\\w+(?=\\s*=>)",
158
+ "match": "\\b\\w+\\s*(?==>)\\s*",
154
159
  "name": "constant.other.key.puppet"
155
160
  },
156
161
  {
@@ -166,8 +171,8 @@
166
171
  "constants": {
167
172
  "patterns": [
168
173
  {
169
- "match": "(?i)\\b(false|true|running|present|absent|file|directory)\\b",
170
- "name": "constant.language.php"
174
+ "match": "(?i)\\b(false|true|running|undef|present|absent|file|directory)\\b",
175
+ "name": "constant.language.puppet"
171
176
  }
172
177
  ]
173
178
  },
@@ -187,13 +192,7 @@
187
192
  "name": "string.quoted.double.puppet",
188
193
  "patterns": [
189
194
  {
190
- "captures": {
191
- "1": {
192
- "name": "punctuation.definition.constant.roole"
193
- }
194
- },
195
- "match": "(\\\\)[$\"'\\\\nrts]",
196
- "name": "constant.character.escape.puppet"
195
+ "include": "#escaped_char"
197
196
  },
198
197
  {
199
198
  "include": "#variable"
@@ -201,12 +200,7 @@
201
200
  ]
202
201
  },
203
202
  "escaped_char": {
204
- "captures": {
205
- "1": {
206
- "name": "punctuation.definition.constant.roole"
207
- }
208
- },
209
- "match": "(\\\\).",
203
+ "match": "\\\\.",
210
204
  "name": "constant.character.escape.puppet"
211
205
  },
212
206
  "line_comment": {
@@ -224,41 +218,24 @@
224
218
  "name": "meta.comment.full-line.puppet"
225
219
  },
226
220
  {
227
- "begin": "(^[ \\t]+)?(?=#)",
228
- "beginCaptures": {
221
+ "captures": {
229
222
  "1": {
230
- "name": "punctuation.whitespace.comment.leading.puppet"
223
+ "name": "punctuation.definition.comment.puppet"
231
224
  }
232
225
  },
233
- "end": "(?!\\G)",
234
- "patterns": [
235
- {
236
- "begin": "#",
237
- "beginCaptures": {
238
- "0": {
239
- "name": "punctuation.definition.comment.puppet"
240
- }
241
- },
242
- "end": "\\n",
243
- "name": "comment.line.number-sign.puppet"
244
- }
245
- ]
226
+ "match": "(#).*$\\n?",
227
+ "name": "comment.line.number-sign.puppet"
246
228
  }
247
229
  ]
248
230
  },
249
231
  "nested_braces": {
250
232
  "begin": "\\{",
251
- "beginCaptures": {
252
- "0": {
253
- "name": "punctuation.section.scope.begin.puppet"
233
+ "captures": {
234
+ "1": {
235
+ "name": "punctuation.section.scope.puppet"
254
236
  }
255
237
  },
256
238
  "end": "\\}",
257
- "endCaptures": {
258
- "0": {
259
- "name": "punctuation.section.scope.end.puppet"
260
- }
261
- },
262
239
  "patterns": [
263
240
  {
264
241
  "include": "#escaped_char"
@@ -270,17 +247,12 @@
270
247
  },
271
248
  "nested_braces_interpolated": {
272
249
  "begin": "\\{",
273
- "beginCaptures": {
274
- "0": {
275
- "name": "punctuation.section.scope.begin.puppet"
250
+ "captures": {
251
+ "1": {
252
+ "name": "punctuation.section.scope.puppet"
276
253
  }
277
254
  },
278
255
  "end": "\\}",
279
- "endCaptures": {
280
- "0": {
281
- "name": "punctuation.section.scope.end.puppet"
282
- }
283
- },
284
256
  "patterns": [
285
257
  {
286
258
  "include": "#escaped_char"
@@ -295,17 +267,12 @@
295
267
  },
296
268
  "nested_brackets": {
297
269
  "begin": "\\[",
298
- "beginCaptures": {
299
- "0": {
300
- "name": "punctuation.section.scope.begin.puppet"
270
+ "captures": {
271
+ "1": {
272
+ "name": "punctuation.section.scope.puppet"
301
273
  }
302
274
  },
303
275
  "end": "\\]",
304
- "endCaptures": {
305
- "0": {
306
- "name": "punctuation.section.scope.end.puppet"
307
- }
308
- },
309
276
  "patterns": [
310
277
  {
311
278
  "include": "#escaped_char"
@@ -317,17 +284,12 @@
317
284
  },
318
285
  "nested_brackets_interpolated": {
319
286
  "begin": "\\[",
320
- "beginCaptures": {
321
- "0": {
322
- "name": "punctuation.section.scope.begin.puppet"
287
+ "captures": {
288
+ "1": {
289
+ "name": "punctuation.section.scope.puppet"
323
290
  }
324
291
  },
325
292
  "end": "\\]",
326
- "endCaptures": {
327
- "0": {
328
- "name": "punctuation.section.scope.end.puppet"
329
- }
330
- },
331
293
  "patterns": [
332
294
  {
333
295
  "include": "#escaped_char"
@@ -342,17 +304,12 @@
342
304
  },
343
305
  "nested_parens": {
344
306
  "begin": "\\(",
345
- "beginCaptures": {
346
- "0": {
347
- "name": "punctuation.section.scope.begin.puppet"
307
+ "captures": {
308
+ "1": {
309
+ "name": "punctuation.section.scope.puppet"
348
310
  }
349
311
  },
350
312
  "end": "\\)",
351
- "endCaptures": {
352
- "0": {
353
- "name": "punctuation.section.scope.end.puppet"
354
- }
355
- },
356
313
  "patterns": [
357
314
  {
358
315
  "include": "#escaped_char"
@@ -364,17 +321,12 @@
364
321
  },
365
322
  "nested_parens_interpolated": {
366
323
  "begin": "\\(",
367
- "beginCaptures": {
368
- "0": {
369
- "name": "punctuation.section.scope.begin.puppet"
324
+ "captures": {
325
+ "1": {
326
+ "name": "punctuation.section.scope.puppet"
370
327
  }
371
328
  },
372
329
  "end": "\\)",
373
- "endCaptures": {
374
- "0": {
375
- "name": "punctuation.section.scope.end.puppet"
376
- }
377
- },
378
330
  "patterns": [
379
331
  {
380
332
  "include": "#escaped_char"
@@ -403,9 +355,9 @@
403
355
  "name": "keyword.operator.assignment.php"
404
356
  },
405
357
  {
406
- "begin": "\\[",
358
+ "begin": "(\\[)",
407
359
  "beginCaptures": {
408
- "0": {
360
+ "1": {
409
361
  "name": "punctuation.definition.array.begin.puppet"
410
362
  }
411
363
  },
@@ -443,13 +395,7 @@
443
395
  "name": "string.quoted.single.puppet",
444
396
  "patterns": [
445
397
  {
446
- "captures": {
447
- "1": {
448
- "name": "punctuation.definition.constant.roole"
449
- }
450
- },
451
- "match": "(\\\\)[\\\\']",
452
- "name": "constant.character.escape.puppet"
398
+ "include": "#escaped_char"
453
399
  }
454
400
  ]
455
401
  },
@@ -118,7 +118,7 @@
118
118
  {
119
119
  "comment": "renpy screen statement keywords",
120
120
  "name": "support.type.python",
121
- "match": "\\b(kind|color|action|area|hovered|unhovered|python|clicked|modal|text_style|default|has|who|what|tag|value|theme)\\b"
121
+ "match": "\\b(kind|color|action|area|hovered|unhovered|clicked|modal|text_style|default|has|who|what|tag|value|theme)\\b"
122
122
  },
123
123
  {
124
124
  "comment": "renpy transform keywords",
@@ -148,7 +148,7 @@
148
148
  {
149
149
  "comment": "python statements renpy keywords",
150
150
  "name": "support.type.python",
151
- "match": "\\b(python|renpy|store|persistent|config)\\b"
151
+ "match": "\\b(renpy|store|persistent|config)\\b"
152
152
  },
153
153
  {
154
154
  "comment": "python statements renpy keywords",
@@ -19,7 +19,8 @@
19
19
  ".textmate_init",
20
20
  "npmrc",
21
21
  "PKGBUILD",
22
- "cygport"
22
+ "cygport",
23
+ "bats"
23
24
  ],
24
25
  "firstLineMatch": "^#!.*\\b(bash|zsh|sh|tcsh|ksh|dash|ash|csh)|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
25
26
  "patterns": [
@@ -0,0 +1,146 @@
1
+ {
2
+ "comment": "Terra Syntax: version 0.1",
3
+ "fileTypes": [
4
+ "t"
5
+ ],
6
+ "foldingStartMarker": "^\\s*\\b(function|local\\s+function|if|for)\\b|{[ \\t]*$|\\[\\[",
7
+ "foldingStopMarker": "\\bend\\b|^\\s*}|\\]\\]",
8
+ "keyEquivalent": "^~L",
9
+ "name": "Terra",
10
+ "patterns": [
11
+ {
12
+ "captures": {
13
+ "1": {
14
+ "name": "keyword.control.terra"
15
+ },
16
+ "2": {
17
+ "name": "entity.name.function.scope.terra"
18
+ },
19
+ "3": {
20
+ "name": "entity.name.function.terra"
21
+ },
22
+ "4": {
23
+ "name": "punctuation.definition.parameters.begin.terra"
24
+ },
25
+ "5": {
26
+ "name": "variable.parameter.function.terra"
27
+ },
28
+ "6": {
29
+ "name": "punctuation.definition.parameters.end.terra"
30
+ }
31
+ },
32
+ "match": "\\b(terra|function)\\s+([a-zA-Z_.:]+[.:])?([a-zA-Z_]\\w*)\\s*(\\()([^)]*)(\\))",
33
+ "name": "meta.function.terra"
34
+ },
35
+ {
36
+ "match": "(?<![\\d.])\\s0x[a-fA-F\\d]+|\\b\\d+(\\.\\d+)?([eE]-?\\d+)?|\\.\\d+([eE]-?\\d+)?",
37
+ "name": "constant.numeric.terra"
38
+ },
39
+ {
40
+ "begin": "'",
41
+ "beginCaptures": {
42
+ "0": {
43
+ "name": "punctuation.definition.string.begin.terra"
44
+ }
45
+ },
46
+ "end": "'",
47
+ "endCaptures": {
48
+ "0": {
49
+ "name": "punctuation.definition.string.end.terra"
50
+ }
51
+ },
52
+ "name": "string.quoted.single.terra",
53
+ "patterns": [
54
+ {
55
+ "match": "\\\\.",
56
+ "name": "constant.character.escape.terra"
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "begin": "\"",
62
+ "beginCaptures": {
63
+ "0": {
64
+ "name": "punctuation.definition.string.begin.terra"
65
+ }
66
+ },
67
+ "end": "\"",
68
+ "endCaptures": {
69
+ "0": {
70
+ "name": "punctuation.definition.string.end.terra"
71
+ }
72
+ },
73
+ "name": "string.quoted.double.terra",
74
+ "patterns": [
75
+ {
76
+ "match": "\\\\.",
77
+ "name": "constant.character.escape.terra"
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "begin": "(?<!--)\\[(=*)\\[",
83
+ "beginCaptures": {
84
+ "0": {
85
+ "name": "punctuation.definition.string.begin.terra"
86
+ }
87
+ },
88
+ "end": "\\]\\1\\]",
89
+ "endCaptures": {
90
+ "0": {
91
+ "name": "punctuation.definition.string.end.terra"
92
+ }
93
+ },
94
+ "name": "string.quoted.other.multiline.terra"
95
+ },
96
+ {
97
+ "begin": "--\\[(=*)\\[",
98
+ "captures": {
99
+ "0": {
100
+ "name": "punctuation.definition.comment.terra"
101
+ }
102
+ },
103
+ "end": "\\]\\1\\]",
104
+ "name": "comment.block.terra"
105
+ },
106
+ {
107
+ "captures": {
108
+ "1": {
109
+ "name": "punctuation.definition.comment.terra"
110
+ }
111
+ },
112
+ "match": "(--)(?!\\[\\[).*$\\n?",
113
+ "name": "comment.line.double-dash.terra"
114
+ },
115
+ {
116
+ "match": "\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in)\\b",
117
+ "name": "keyword.control.terra"
118
+ },
119
+ {
120
+ "match": "(?<![^.]\\.|:)\\b(false|nil|true|_G|_VERSION|math\\.(pi|huge))\\b|(?<![.])\\.{3}(?!\\.)",
121
+ "name": "constant.language.terra"
122
+ },
123
+ {
124
+ "match": "(?<![^.]\\.|:)\\b(self)\\b",
125
+ "name": "variable.language.self.terra"
126
+ },
127
+ {
128
+ "match": "(?<![^.]\\.|:)\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\b(?=[( {])",
129
+ "name": "support.function.terra"
130
+ },
131
+ {
132
+ "match": "(?<![^.]\\.|:)\\b(coroutine\\.(create|resume|running|status|wrap|yield)|string\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\\.(concat|insert|maxn|remove|sort)|math\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?)|io\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\.(cpath|loaded|loadlib|path|preload|seeall)|debug\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|traceback))\\b(?=[( {])",
133
+ "name": "support.function.library.terra"
134
+ },
135
+ {
136
+ "match": "\\b(and|or|not)\\b",
137
+ "name": "keyword.operator.terra"
138
+ },
139
+ {
140
+ "match": "\\+|-|%|#|\\*|\\/|\\^|==?|~=|<=?|>=?|(?<!\\.)\\.{2}(?!\\.)",
141
+ "name": "keyword.operator.terra"
142
+ }
143
+ ],
144
+ "scopeName": "source.terra",
145
+ "uuid": "60fdffd9-17bb-4a53-a0f1-3ba1a0e5c0bf"
146
+ }