github-linguist 7.6.0 → 7.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +5 -5
  2. data/bin/github-linguist +17 -4
  3. data/grammars/annotation.liquidhaskell.haskell.json +58 -11
  4. data/grammars/etc.json +472 -4
  5. data/grammars/hidden.manref.json +29 -0
  6. data/grammars/hidden.regexp.injection-shell.json +28 -0
  7. data/grammars/hint.haskell.json +58 -11
  8. data/grammars/hint.message.haskell.json +58 -11
  9. data/grammars/hint.type.haskell.json +58 -11
  10. data/grammars/injections.etc.json +601 -1
  11. data/grammars/markdown.plantuml.codeblock.json +26 -0
  12. data/grammars/source.4dm.json +1156 -0
  13. data/grammars/source.abap.json +7 -7
  14. data/grammars/source.abl.json +685 -83
  15. data/grammars/source.abnf.json +23 -1
  16. data/grammars/source.agda.json +33 -203
  17. data/grammars/source.ahk.json +9 -5
  18. data/grammars/source.angelscript.json +1 -1
  19. data/grammars/source.ballerina.json +55 -19
  20. data/grammars/source.c++.json +4 -4
  21. data/grammars/source.c.platform.json +584 -33
  22. data/grammars/source.chapel.json +7 -4
  23. data/grammars/source.csound.json +1 -1
  24. data/grammars/source.css.json +3 -3
  25. data/grammars/source.css.scss.json +164 -15
  26. data/grammars/source.curlrc.json +869 -65
  27. data/grammars/source.d.json +2 -2
  28. data/grammars/source.dart.json +58 -32
  29. data/grammars/source.dircolors.json +137 -0
  30. data/grammars/source.direct-x.json +135 -0
  31. data/grammars/source.ebnf.json +67 -39
  32. data/grammars/source.editorconfig.json +23 -5
  33. data/grammars/source.elixir.json +51 -0
  34. data/grammars/source.elm.json +1 -1
  35. data/grammars/source.emacs.lisp.json +10 -0
  36. data/grammars/source.faust.json +119 -0
  37. data/grammars/source.futhark.json +146 -0
  38. data/grammars/source.gcode.json +166 -8
  39. data/grammars/source.gedcom.json +196 -0
  40. data/grammars/source.generic-db.json +41 -0
  41. data/grammars/source.gfm.blade.json +15 -0
  42. data/grammars/source.gfm.json +1697 -1439
  43. data/grammars/source.gitconfig.json +1 -1
  44. data/grammars/source.hack.json +200 -98
  45. data/grammars/source.haskell.json +58 -11
  46. data/grammars/source.hlsl.json +9 -5
  47. data/grammars/source.hosts.json +40 -0
  48. data/grammars/source.hsig.json +58 -11
  49. data/grammars/source.httpspec.json +1 -1
  50. data/grammars/source.hx.json +9 -5
  51. data/grammars/source.hxml.json +2 -2
  52. data/grammars/source.idris.json +1 -1
  53. data/grammars/source.igor.json +46 -2
  54. data/grammars/source.ini.npmrc.json +311 -0
  55. data/grammars/source.inno.json +133 -0
  56. data/grammars/source.inputrc.json +500 -0
  57. data/grammars/source.isabelle.root.json +1 -1
  58. data/grammars/source.jison.json +3 -0
  59. data/grammars/source.jisonlex.json +3 -0
  60. data/grammars/source.js.json +4 -4
  61. data/grammars/source.julia.json +70 -24
  62. data/grammars/source.kotlin.json +17 -51
  63. data/grammars/source.lcov.json +398 -0
  64. data/grammars/source.lean.json +20 -4
  65. data/grammars/source.lean.markdown.json +2598 -0
  66. data/grammars/source.lex.json +4 -4
  67. data/grammars/source.m2.json +125 -0
  68. data/grammars/source.m4.json +141 -99
  69. data/grammars/source.man-conf.json +47 -35
  70. data/grammars/source.matlab.json +437 -184
  71. data/grammars/source.mcfunction-snapshot.json +21388 -561
  72. data/grammars/source.mcfunction.json +55 -5
  73. data/grammars/source.meson.json +1 -1
  74. data/grammars/source.mlir.json +37 -317
  75. data/grammars/source.modula-3.json +10 -0
  76. data/grammars/source.msl.json +755 -0
  77. data/grammars/source.nasl.json +155 -0
  78. data/grammars/source.neon.json +381 -0
  79. data/grammars/source.nextflow.json +2 -2
  80. data/grammars/source.objc.platform.json +493 -35
  81. data/grammars/source.odin-ehr.json +806 -0
  82. data/grammars/source.odin.json +402 -0
  83. data/grammars/source.openbsd-pkg.contents.json +128 -0
  84. data/grammars/source.opts.json +12 -2
  85. data/grammars/source.perl6fe.json +1 -1
  86. data/grammars/source.postscript.json +358 -103
  87. data/grammars/source.prisma.json +435 -0
  88. data/grammars/source.purescript.json +29 -2
  89. data/grammars/source.python.json +52 -0
  90. data/grammars/source.q.json +150 -63
  91. data/grammars/source.qasm.json +66 -0
  92. data/grammars/source.ql.json +1408 -0
  93. data/grammars/source.r.json +4 -4
  94. data/grammars/source.reason.json +28 -16
  95. data/grammars/source.rego.json +124 -0
  96. data/grammars/source.sass.json +158 -3
  97. data/grammars/source.scala.json +53 -18
  98. data/grammars/source.sieve.json +383 -0
  99. data/grammars/source.solidity.json +1 -1
  100. data/grammars/source.ssh-config.json +1 -14
  101. data/grammars/source.swift.json +162 -2
  102. data/grammars/source.sy.json +2088 -183
  103. data/grammars/source.tags.json +266 -0
  104. data/grammars/source.terraform.json +576 -132
  105. data/grammars/source.tnsaudit.json +256 -0
  106. data/grammars/source.ts.json +246 -70
  107. data/grammars/source.tsx.json +247 -71
  108. data/grammars/source.v.json +587 -761
  109. data/grammars/source.vim-snippet.json +645 -0
  110. data/grammars/source.viml.json +6 -6
  111. data/grammars/source.webassembly.json +10 -0
  112. data/grammars/source.webidl.json +8 -0
  113. data/grammars/source.wgetrc.json +1640 -0
  114. data/grammars/source.wsd.json +781 -0
  115. data/grammars/source.x86.json +7 -3
  116. data/grammars/source.zig.json +231 -360
  117. data/grammars/text.dfy.dafny.json +188 -0
  118. data/grammars/text.html.php.blade.json +535 -528
  119. data/grammars/text.html.riot.json +788 -0
  120. data/grammars/text.muse.json +1471 -0
  121. data/grammars/text.openbsd-pkg.desc.json +78 -0
  122. data/grammars/text.roff.json +49 -1
  123. data/grammars/text.sfd.json +21 -0
  124. data/grammars/text.tex.latex.haskell.json +58 -11
  125. data/grammars/text.vim-help.json +383 -0
  126. data/grammars/text.xml.svg.json +8 -2
  127. data/grammars/version +1 -1
  128. data/lib/linguist/VERSION +1 -1
  129. data/lib/linguist/blob_helper.rb +4 -2
  130. data/lib/linguist/file_blob.rb +1 -1
  131. data/lib/linguist/generated.rb +96 -28
  132. data/lib/linguist/heuristics.yml +64 -4
  133. data/lib/linguist/languages.json +1 -1
  134. data/lib/linguist/languages.yml +408 -49
  135. data/lib/linguist/lazy_blob.rb +10 -10
  136. data/lib/linguist/linguist.bundle +0 -0
  137. data/lib/linguist/samples.json +48129 -31562
  138. data/lib/linguist/shebang.rb +5 -3
  139. data/lib/linguist/vendor.yml +71 -60
  140. metadata +48 -17
  141. data/grammars/source.LS.json +0 -85
  142. data/grammars/source.MCPOST.json +0 -54
  143. data/grammars/source.MOD.json +0 -55
  144. data/grammars/source.apt.json +0 -18
  145. data/grammars/source.jlex.json +0 -322
  146. data/grammars/source.yaml-ext.json +0 -324
  147. data/grammars/text.html.abl.json +0 -70
@@ -0,0 +1,435 @@
1
+ {
2
+ "name": "Prisma",
3
+ "scopeName": "source.prisma",
4
+ "patterns": [
5
+ {
6
+ "include": "#triple_comment"
7
+ },
8
+ {
9
+ "include": "#double_comment"
10
+ },
11
+ {
12
+ "include": "#model_block_definition"
13
+ },
14
+ {
15
+ "include": "#config_block_definition"
16
+ },
17
+ {
18
+ "include": "#enum_block_definition"
19
+ },
20
+ {
21
+ "include": "#type_definition"
22
+ }
23
+ ],
24
+ "repository": {
25
+ "array": {
26
+ "name": "source.prisma.array",
27
+ "begin": "\\[",
28
+ "end": "\\]",
29
+ "patterns": [
30
+ {
31
+ "include": "#value"
32
+ }
33
+ ],
34
+ "beginCaptures": {
35
+ "1": {
36
+ "name": "punctuation.definition.tag.prisma"
37
+ }
38
+ },
39
+ "endCaptures": {
40
+ "1": {
41
+ "name": "punctuation.definition.tag.prisma"
42
+ }
43
+ }
44
+ },
45
+ "assignment": {
46
+ "patterns": [
47
+ {
48
+ "begin": "^\\s*(\\w+)\\s*(=)\\s*",
49
+ "end": "\\n",
50
+ "patterns": [
51
+ {
52
+ "include": "#value"
53
+ },
54
+ {
55
+ "include": "#double_comment_inline"
56
+ }
57
+ ],
58
+ "beginCaptures": {
59
+ "1": {
60
+ "name": "variable.other.assignment.prisma"
61
+ },
62
+ "2": {
63
+ "name": "keyword.operator.terraform"
64
+ }
65
+ }
66
+ }
67
+ ]
68
+ },
69
+ "attribute": {
70
+ "name": "source.prisma.attribute",
71
+ "match": "(@@?[\\w\\.]+)",
72
+ "captures": {
73
+ "1": {
74
+ "name": "entity.name.function.attribute.prisma"
75
+ }
76
+ }
77
+ },
78
+ "attribute_with_arguments": {
79
+ "name": "source.prisma.attribute.with_arguments",
80
+ "begin": "(@@?[\\w\\.]+)(\\()",
81
+ "end": "\\)",
82
+ "patterns": [
83
+ {
84
+ "include": "#named_argument"
85
+ },
86
+ {
87
+ "include": "#value"
88
+ }
89
+ ],
90
+ "beginCaptures": {
91
+ "1": {
92
+ "name": "entity.name.function.attribute.prisma"
93
+ },
94
+ "2": {
95
+ "name": "punctuation.definition.tag.prisma"
96
+ }
97
+ },
98
+ "endCaptures": {
99
+ "0": {
100
+ "name": "punctuation.definition.tag.prisma"
101
+ }
102
+ }
103
+ },
104
+ "boolean": {
105
+ "name": "constant.language.boolean.prisma",
106
+ "match": "\\b(true|false)\\b"
107
+ },
108
+ "config_block_definition": {
109
+ "name": "source.prisma.embedded.source",
110
+ "begin": "^\\s*(generator|datasource)\\s+([A-Za-z][\\w]*)\\s+({)",
111
+ "end": "\\s*\\}",
112
+ "patterns": [
113
+ {
114
+ "include": "#triple_comment"
115
+ },
116
+ {
117
+ "include": "#double_comment"
118
+ },
119
+ {
120
+ "include": "#assignment"
121
+ }
122
+ ],
123
+ "beginCaptures": {
124
+ "1": {
125
+ "name": "storage.type.config.prisma"
126
+ },
127
+ "2": {
128
+ "name": "entity.name.type.config.prisma"
129
+ },
130
+ "3": {
131
+ "name": "punctuation.definition.tag.prisma"
132
+ }
133
+ },
134
+ "endCaptures": {
135
+ "1": {
136
+ "name": "punctuation.definition.tag.prisma"
137
+ }
138
+ }
139
+ },
140
+ "double_comment": {
141
+ "name": "comment.prisma",
142
+ "begin": "//",
143
+ "end": "$\\n?"
144
+ },
145
+ "double_comment_inline": {
146
+ "name": "comment.prisma",
147
+ "match": "//[^\\n]*"
148
+ },
149
+ "double_quoted_string": {
150
+ "name": "unnamed",
151
+ "begin": "\"",
152
+ "end": "\"",
153
+ "patterns": [
154
+ {
155
+ "include": "#string_interpolation"
156
+ },
157
+ {
158
+ "name": "string.quoted.double.prisma",
159
+ "match": "([\\w\\-\\/\\._\\\\%@:\\?=]+)"
160
+ }
161
+ ],
162
+ "beginCaptures": {
163
+ "0": {
164
+ "name": "string.quoted.double.start.prisma"
165
+ }
166
+ },
167
+ "endCaptures": {
168
+ "0": {
169
+ "name": "string.quoted.double.end.prisma"
170
+ }
171
+ }
172
+ },
173
+ "enum_block_definition": {
174
+ "name": "source.prisma.embedded.source",
175
+ "begin": "^\\s*(enum)\\s+([A-Za-z][\\w]*)\\s+({)",
176
+ "end": "\\s*\\}",
177
+ "patterns": [
178
+ {
179
+ "include": "#triple_comment"
180
+ },
181
+ {
182
+ "include": "#double_comment"
183
+ },
184
+ {
185
+ "include": "#enum_value_definition"
186
+ }
187
+ ],
188
+ "beginCaptures": {
189
+ "1": {
190
+ "name": "storage.type.enum.prisma"
191
+ },
192
+ "2": {
193
+ "name": "entity.name.type.enum.prisma"
194
+ },
195
+ "3": {
196
+ "name": "punctuation.definition.tag.prisma"
197
+ }
198
+ },
199
+ "endCaptures": {
200
+ "0": {
201
+ "name": "punctuation.definition.tag.prisma"
202
+ }
203
+ }
204
+ },
205
+ "enum_value_definition": {
206
+ "patterns": [
207
+ {
208
+ "match": "^\\s*(\\w+)\\s*$",
209
+ "captures": {
210
+ "1": {
211
+ "name": "variable.other.assignment.prisma"
212
+ }
213
+ }
214
+ },
215
+ {
216
+ "include": "#attribute_with_arguments"
217
+ },
218
+ {
219
+ "include": "#attribute"
220
+ }
221
+ ]
222
+ },
223
+ "field_definition": {
224
+ "patterns": [
225
+ {
226
+ "match": "^\\s*(\\w+)(\\s*:)?\\s+(\\w+)(\\[\\])?(\\?)?(\\!)?",
227
+ "captures": {
228
+ "1": {
229
+ "name": "variable.other.assignment.prisma"
230
+ },
231
+ "2": {
232
+ "name": "invalid.illegal.colon.prisma"
233
+ },
234
+ "3": {
235
+ "name": "support.type.primitive.prisma"
236
+ },
237
+ "4": {
238
+ "name": "keyword.operator.list_type.prisma"
239
+ },
240
+ "5": {
241
+ "name": "keyword.operator.optional_type.prisma"
242
+ },
243
+ "6": {
244
+ "name": "invalid.illegal.required_type.prisma"
245
+ }
246
+ }
247
+ },
248
+ {
249
+ "include": "#attribute_with_arguments"
250
+ },
251
+ {
252
+ "include": "#attribute"
253
+ }
254
+ ]
255
+ },
256
+ "functional": {
257
+ "name": "source.prisma.functional",
258
+ "begin": "(\\w+)(\\()",
259
+ "end": "\\)",
260
+ "patterns": [
261
+ {
262
+ "include": "#value"
263
+ }
264
+ ],
265
+ "beginCaptures": {
266
+ "1": {
267
+ "name": "support.function.functional.prisma"
268
+ },
269
+ "2": {
270
+ "name": "punctuation.definition.tag.prisma"
271
+ }
272
+ },
273
+ "endCaptures": {
274
+ "0": {
275
+ "name": "punctuation.definition.tag.prisma"
276
+ }
277
+ }
278
+ },
279
+ "identifier": {
280
+ "patterns": [
281
+ {
282
+ "name": "support.constant.constant.prisma",
283
+ "match": "\\b(\\w)+\\b"
284
+ }
285
+ ]
286
+ },
287
+ "literal": {
288
+ "name": "source.prisma.literal",
289
+ "patterns": [
290
+ {
291
+ "include": "#boolean"
292
+ },
293
+ {
294
+ "include": "#number"
295
+ },
296
+ {
297
+ "include": "#double_quoted_string"
298
+ },
299
+ {
300
+ "include": "#identifier"
301
+ }
302
+ ]
303
+ },
304
+ "map_key": {
305
+ "name": "source.prisma.key",
306
+ "patterns": [
307
+ {
308
+ "match": "(\\w+)\\s*(:)\\s*",
309
+ "captures": {
310
+ "1": {
311
+ "name": "variable.parameter.key.prisma"
312
+ },
313
+ "2": {
314
+ "name": "punctuation.definition.separator.key-value.prisma"
315
+ }
316
+ }
317
+ }
318
+ ]
319
+ },
320
+ "model_block_definition": {
321
+ "name": "source.prisma.embedded.source",
322
+ "begin": "^\\s*(model|type)\\s+([A-Za-z][\\w]*)\\s*({)",
323
+ "end": "\\s*\\}",
324
+ "patterns": [
325
+ {
326
+ "include": "#triple_comment"
327
+ },
328
+ {
329
+ "include": "#double_comment"
330
+ },
331
+ {
332
+ "include": "#field_definition"
333
+ }
334
+ ],
335
+ "beginCaptures": {
336
+ "1": {
337
+ "name": "storage.type.model.prisma"
338
+ },
339
+ "2": {
340
+ "name": "entity.name.type.model.prisma"
341
+ },
342
+ "3": {
343
+ "name": "punctuation.definition.tag.prisma"
344
+ }
345
+ },
346
+ "endCaptures": {
347
+ "0": {
348
+ "name": "punctuation.definition.tag.prisma"
349
+ }
350
+ }
351
+ },
352
+ "named_argument": {
353
+ "name": "source.prisma.named_argument",
354
+ "patterns": [
355
+ {
356
+ "include": "#map_key"
357
+ },
358
+ {
359
+ "include": "#value"
360
+ }
361
+ ]
362
+ },
363
+ "number": {
364
+ "name": "constant.numeric.prisma",
365
+ "match": "((0(x|X)[0-9a-fA-F]*)|(\\+|-)?\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)([LlFfUuDdg]|UL|ul)?\\b"
366
+ },
367
+ "string_interpolation": {
368
+ "patterns": [
369
+ {
370
+ "name": "source.tag.embedded.source.prisma",
371
+ "begin": "\\$\\{",
372
+ "end": "\\s*\\}",
373
+ "patterns": [
374
+ {
375
+ "include": "#value"
376
+ }
377
+ ],
378
+ "beginCaptures": {
379
+ "0": {
380
+ "name": "keyword.control.interpolation.start.prisma"
381
+ }
382
+ },
383
+ "endCaptures": {
384
+ "0": {
385
+ "name": "keyword.control.interpolation.end.prisma"
386
+ }
387
+ }
388
+ }
389
+ ]
390
+ },
391
+ "triple_comment": {
392
+ "name": "comment.prisma",
393
+ "begin": "///",
394
+ "end": "$\\n?"
395
+ },
396
+ "type_definition": {
397
+ "patterns": [
398
+ {
399
+ "match": "^\\s*(type)\\s+(\\w+)\\s*=\\s*(\\w+)",
400
+ "captures": {
401
+ "1": {
402
+ "name": "storage.type.type.prisma"
403
+ },
404
+ "2": {
405
+ "name": "entity.name.type.type.prisma"
406
+ },
407
+ "3": {
408
+ "name": "support.type.primitive.prisma"
409
+ }
410
+ }
411
+ },
412
+ {
413
+ "include": "#attribute_with_arguments"
414
+ },
415
+ {
416
+ "include": "#attribute"
417
+ }
418
+ ]
419
+ },
420
+ "value": {
421
+ "name": "source.prisma.value",
422
+ "patterns": [
423
+ {
424
+ "include": "#array"
425
+ },
426
+ {
427
+ "include": "#functional"
428
+ },
429
+ {
430
+ "include": "#literal"
431
+ }
432
+ ]
433
+ }
434
+ }
435
+ }
@@ -287,8 +287,35 @@
287
287
  "match": "\\b(do|ado|if|then|else|case|of|let|in)(?!')\\b"
288
288
  },
289
289
  {
290
- "name": "constant.numeric.float.purescript",
291
- "match": "\\b(([0-9]+_?)*[0-9]+\\.[0-9]+([eE][+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+)\\b"
290
+ "name": "constant.numeric.hex.purescript",
291
+ "match": "\\b(?\u003c!\\$)0(x|X)[0-9a-fA-F]+\\b(?!\\$)"
292
+ },
293
+ {
294
+ "name": "constant.numeric.decimal.purescript",
295
+ "match": "(?x)\n(?\u003c!\\$)(?:\n (?:\\b[0-9]+(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # 1.1E+3\n (?:\\b[0-9]+[eE][+-]?[0-9]+\\b)| # 1E+3\n (?:\\b[0-9]+(\\.)[0-9]+\\b)| # 1.1\n (?:\\b[0-9]+\\b(?!\\.)) # 1\n)(?!\\$)",
296
+ "captures": {
297
+ "0": {
298
+ "name": "constant.numeric.decimal.purescript"
299
+ },
300
+ "1": {
301
+ "name": "meta.delimiter.decimal.period.purescript"
302
+ },
303
+ "2": {
304
+ "name": "meta.delimiter.decimal.period.purescript"
305
+ },
306
+ "3": {
307
+ "name": "meta.delimiter.decimal.period.purescript"
308
+ },
309
+ "4": {
310
+ "name": "meta.delimiter.decimal.period.purescript"
311
+ },
312
+ "5": {
313
+ "name": "meta.delimiter.decimal.period.purescript"
314
+ },
315
+ "6": {
316
+ "name": "meta.delimiter.decimal.period.purescript"
317
+ }
318
+ }
292
319
  },
293
320
  {
294
321
  "name": "constant.language.boolean.purescript",