github-linguist 7.9.0 → 7.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/etc.json +260 -1
  3. data/grammars/hidden.manref.json +1 -1
  4. data/grammars/hidden.regexp.injection-shell.json +28 -0
  5. data/grammars/source.4dm.json +57 -1
  6. data/grammars/source.abap.json +1 -1
  7. data/grammars/source.abl.json +685 -83
  8. data/grammars/source.agda.json +7 -7
  9. data/grammars/source.ballerina.json +1 -1
  10. data/grammars/source.c++.json +4 -4
  11. data/grammars/source.c.platform.json +584 -33
  12. data/grammars/source.chapel.json +5 -2
  13. data/grammars/source.css.json +1 -1
  14. data/grammars/source.curlrc.json +4 -4
  15. data/grammars/source.d.json +2 -2
  16. data/grammars/source.futhark.json +146 -0
  17. data/grammars/source.gcode.json +2 -2
  18. data/grammars/source.gedcom.json +196 -0
  19. data/grammars/source.generic-db.json +41 -0
  20. data/grammars/source.gfm.blade.json +15 -0
  21. data/grammars/source.gfm.json +1697 -1439
  22. data/grammars/source.httpspec.json +1 -1
  23. data/grammars/source.hx.json +5 -5
  24. data/grammars/source.hxml.json +2 -2
  25. data/grammars/source.idris.json +1 -1
  26. data/grammars/source.inputrc.json +1 -1
  27. data/grammars/source.isabelle.root.json +1 -1
  28. data/grammars/source.jison.json +3 -0
  29. data/grammars/source.jisonlex.json +3 -0
  30. data/grammars/source.julia.json +1 -1
  31. data/grammars/source.kotlin.json +17 -51
  32. data/grammars/source.lcov.json +398 -0
  33. data/grammars/source.lean.json +1 -1
  34. data/grammars/source.m2.json +125 -0
  35. data/grammars/source.man-conf.json +2 -2
  36. data/grammars/source.modula-3.json +10 -0
  37. data/grammars/{source.mrc.json → source.msl.json} +114 -99
  38. data/grammars/source.neon.json +381 -0
  39. data/grammars/source.objc.platform.json +493 -35
  40. data/grammars/source.openbsd-pkg.contents.json +128 -0
  41. data/grammars/source.p4.json +5 -21
  42. data/grammars/source.perl6fe.json +1 -1
  43. data/grammars/source.postscript.json +358 -103
  44. data/grammars/source.prisma.json +1 -1
  45. data/grammars/source.purescript.json +29 -2
  46. data/grammars/source.python.json +50 -0
  47. data/grammars/source.q.json +150 -63
  48. data/grammars/source.r.json +4 -4
  49. data/grammars/source.sieve.json +383 -0
  50. data/grammars/source.solidity.json +1 -1
  51. data/grammars/source.tags.json +266 -0
  52. data/grammars/source.ts.json +104 -36
  53. data/grammars/source.tsx.json +104 -36
  54. data/grammars/source.v.json +55 -24
  55. data/grammars/source.viml.json +3 -3
  56. data/grammars/source.webidl.json +8 -0
  57. data/grammars/source.wsd.json +25 -19
  58. data/grammars/source.x86.json +7 -3
  59. data/grammars/source.zig.json +84 -78
  60. data/grammars/text.dfy.dafny.json +188 -0
  61. data/grammars/text.html.php.blade.json +535 -528
  62. data/grammars/text.openbsd-pkg.desc.json +78 -0
  63. data/grammars/text.roff.json +49 -1
  64. data/grammars/text.sfd.json +21 -0
  65. data/grammars/text.xml.svg.json +8 -2
  66. data/grammars/version +1 -1
  67. data/lib/linguist/VERSION +1 -1
  68. data/lib/linguist/generated.rb +23 -6
  69. data/lib/linguist/languages.json +1 -1
  70. data/lib/linguist/languages.yml +74 -6
  71. data/lib/linguist/samples.json +4614 -150
  72. data/lib/linguist/vendor.yml +64 -62
  73. metadata +22 -10
  74. data/grammars/text.html.abl.json +0 -70
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e83ceb8bf77137817f34d6e9f7f03c98848810f05d5b302041890d0cec6d8a10
4
- data.tar.gz: 5958359cc33f77f56c59166000692ce9f48f8b502520f1d1b1fcfd5ff27e1e93
3
+ metadata.gz: 17295b377f80cbcffaf551fb456ff1efd060a01230928300d3b07042d3d8c330
4
+ data.tar.gz: c783d40d56c55bad1761755ccc0fd97ce744ae1b206d3902b67260ca1097dac8
5
5
  SHA512:
6
- metadata.gz: da8c5a07b3b3bbb1e9beefa1d968fbfb6af90ce4da450d7993f53d72bda4f7cfd50acb5d24b248f7042370c025049dca3bc97a005c9ebe331f8db5cf3bc05675
7
- data.tar.gz: 689b968ac78b67169813cceba5a2cc8471ba844b8e040eadf3560d6f0ba651e47a1448877fc2c34ade13f99905a302ad12b6d631c4fb2deb85f0b18c3b560be6
6
+ metadata.gz: c725414eb0a90a509d128786abb5f3df82f915d840cb8c1078e9869a28af74c674f4ad0e2459652f6150a6b1a6469dd62e3780fef0886d42c1a2b47af8f1f2fc
7
+ data.tar.gz: 1e28352cacaed155ca8419243327eeca62fe0f048a4a24c0c6868a2a3b6470b91dd46ab13881d7170b80a90e3cea3d629c8b926237aa98408ff8ed4635e333a6
@@ -75,7 +75,7 @@
75
75
  ]
76
76
  },
77
77
  "colon": {
78
- "name": "keyword.operator.assignment.key-value.colon",
78
+ "name": "punctuation.delimiter.separator.colon",
79
79
  "match": ":"
80
80
  },
81
81
  "comma": {
@@ -222,6 +222,10 @@
222
222
  }
223
223
  }
224
224
  },
225
+ "kolon": {
226
+ "name": "keyword.operator.assignment.key-value.colon",
227
+ "match": ":"
228
+ },
225
229
  "num": {
226
230
  "patterns": [
227
231
  {
@@ -232,6 +236,227 @@
232
236
  }
233
237
  ]
234
238
  },
239
+ "op": {
240
+ "patterns": [
241
+ {
242
+ "include": "#opBitAssign"
243
+ },
244
+ {
245
+ "include": "#opMathAssign"
246
+ },
247
+ {
248
+ "include": "#opBit"
249
+ },
250
+ {
251
+ "include": "#opFix"
252
+ },
253
+ {
254
+ "include": "#opCmp"
255
+ },
256
+ {
257
+ "include": "#opLog"
258
+ },
259
+ {
260
+ "include": "#opMath"
261
+ }
262
+ ]
263
+ },
264
+ "opBit": {
265
+ "patterns": [
266
+ {
267
+ "name": "keyword.operator.bitwise.xor",
268
+ "match": "\\^"
269
+ },
270
+ {
271
+ "name": "keyword.operator.bitwise.not",
272
+ "match": "~"
273
+ },
274
+ {
275
+ "name": "keyword.operator.bitwise.and",
276
+ "match": "\u0026"
277
+ },
278
+ {
279
+ "name": "keyword.operator.bitwise.or",
280
+ "match": "\\|"
281
+ },
282
+ {
283
+ "name": "keyword.operator.bitwise.shift.left",
284
+ "match": "\u003c\u003c"
285
+ },
286
+ {
287
+ "name": "keyword.operator.bitwise.shift.right.unsigned",
288
+ "match": "\u003e\u003e\u003e"
289
+ },
290
+ {
291
+ "name": "keyword.operator.bitwise.shift.right.signed",
292
+ "match": "\u003e\u003e"
293
+ }
294
+ ]
295
+ },
296
+ "opBitAssign": {
297
+ "patterns": [
298
+ {
299
+ "name": "keyword.operator.assignment.bitwise.xor",
300
+ "match": "\\^="
301
+ },
302
+ {
303
+ "name": "keyword.operator.assignment.bitwise.not",
304
+ "match": "~="
305
+ },
306
+ {
307
+ "name": "keyword.operator.assignment.bitwise.and",
308
+ "match": "\u0026="
309
+ },
310
+ {
311
+ "name": "keyword.operator.assignment.bitwise.or",
312
+ "match": "\\|="
313
+ },
314
+ {
315
+ "name": "keyword.operator.assignment.bitwise.shift.left",
316
+ "match": "\u003c\u003c="
317
+ },
318
+ {
319
+ "name": "keyword.operator.assignment.bitwise.shift.right.unsigned",
320
+ "match": "\u003e\u003e\u003e="
321
+ },
322
+ {
323
+ "name": "keyword.operator.assignment.bitwise.shift.right.signed",
324
+ "match": "\u003e\u003e="
325
+ }
326
+ ]
327
+ },
328
+ "opCmp": {
329
+ "patterns": [
330
+ {
331
+ "name": "keyword.operator.logical.comparison.starship.spaceship",
332
+ "match": "\u003c=\u003e"
333
+ },
334
+ {
335
+ "name": "keyword.operator.logical.comparison.less-than-or-equal-to.lte",
336
+ "match": "\u003c="
337
+ },
338
+ {
339
+ "name": "keyword.operator.logical.comparison.less-than.lt",
340
+ "match": "\u003c"
341
+ },
342
+ {
343
+ "name": "keyword.operator.logical.comparison.greater-than-or-equal-to.gte",
344
+ "match": "\u003e="
345
+ },
346
+ {
347
+ "name": "keyword.operator.logical.comparison.greater-than.gt",
348
+ "match": "\u003e"
349
+ },
350
+ {
351
+ "name": "keyword.operator.logical.comparison.equal-to.equals.equal.eql.eq.strict",
352
+ "match": "==="
353
+ },
354
+ {
355
+ "name": "keyword.operator.logical.comparison.equal-to.equals.equal.eql.eq",
356
+ "match": "=="
357
+ },
358
+ {
359
+ "name": "keyword.operator.logical.comparison.not-equal-to.not-equal.unequal.neql.ne.strict",
360
+ "match": "!=="
361
+ },
362
+ {
363
+ "name": "keyword.operator.logical.comparison.not-equal-to.not-equal.unequal.neql.ne",
364
+ "match": "!="
365
+ }
366
+ ]
367
+ },
368
+ "opFix": {
369
+ "patterns": [
370
+ {
371
+ "name": "keyword.operator.increment",
372
+ "match": "\\+{2}"
373
+ },
374
+ {
375
+ "name": "keyword.operator.decrement",
376
+ "match": "-{2}"
377
+ }
378
+ ]
379
+ },
380
+ "opLog": {
381
+ "patterns": [
382
+ {
383
+ "name": "keyword.operator.logical.boolean.cast",
384
+ "match": "!!"
385
+ },
386
+ {
387
+ "name": "keyword.operator.logical.boolean.not.negation.negate",
388
+ "match": "!"
389
+ },
390
+ {
391
+ "name": "keyword.operator.logical.boolean.and",
392
+ "match": "\u0026\u0026"
393
+ },
394
+ {
395
+ "name": "keyword.operator.logical.boolean.or",
396
+ "match": "\\|{2}"
397
+ },
398
+ {
399
+ "name": "keyword.operator.logical.boolean.or.nullish",
400
+ "match": "\\?{2}"
401
+ }
402
+ ]
403
+ },
404
+ "opMath": {
405
+ "patterns": [
406
+ {
407
+ "name": "keyword.operator.arithmetic.exponentiation.exponent.exp.power",
408
+ "match": "\\*{2}|\\^"
409
+ },
410
+ {
411
+ "name": "keyword.operator.arithmetic.addition.add.plus",
412
+ "match": "\\+"
413
+ },
414
+ {
415
+ "name": "keyword.operator.arithmetic.multiplication.multiply.times",
416
+ "match": "\\*"
417
+ },
418
+ {
419
+ "name": "keyword.operator.arithmetic.division.divide",
420
+ "match": "/"
421
+ },
422
+ {
423
+ "name": "keyword.operator.arithmetic.remainder.modulo.modulus.mod",
424
+ "match": "%"
425
+ },
426
+ {
427
+ "name": "keyword.operator.arithmetic.subtraction.subtract.minus",
428
+ "match": "[-֊־᐀᠆‐-―⸗⸚⸺⸻⹀〜〰゠︱︲﹘﹣-]"
429
+ }
430
+ ]
431
+ },
432
+ "opMathAssign": {
433
+ "patterns": [
434
+ {
435
+ "name": "keyword.operator.assignment.arithmetic.exponentiation.exponent.exp.power",
436
+ "match": "\\*{2}="
437
+ },
438
+ {
439
+ "name": "keyword.operator.assignment.arithmetic.addition.add.plus",
440
+ "match": "\\+="
441
+ },
442
+ {
443
+ "name": "keyword.operator.assignment.arithmetic.multiplication.multiply.times",
444
+ "match": "\\*="
445
+ },
446
+ {
447
+ "name": "keyword.operator.assignment.arithmetic.division.divide",
448
+ "match": "/="
449
+ },
450
+ {
451
+ "name": "keyword.operator.assignment.arithmetic.remainder.modulo.modulus.mod",
452
+ "match": "%="
453
+ },
454
+ {
455
+ "name": "keyword.operator.assignment.arithmetic.subtraction.subtract.minus",
456
+ "match": "[-֊־᐀᠆‐-―⸗⸚⸺⸻⹀〜〰゠︱︲﹘﹣-]="
457
+ }
458
+ ]
459
+ },
235
460
  "str": {
236
461
  "patterns": [
237
462
  {
@@ -282,6 +507,40 @@
282
507
  }
283
508
  }
284
509
  },
510
+ "tab": {
511
+ "patterns": [
512
+ {
513
+ "match": "^\\t+",
514
+ "captures": {
515
+ "0": {
516
+ "patterns": [
517
+ {
518
+ "name": "punctuation.whitespace.leading.tab.hard-tab",
519
+ "match": "\\t"
520
+ }
521
+ ]
522
+ }
523
+ }
524
+ },
525
+ {
526
+ "match": "\\t+$",
527
+ "captures": {
528
+ "0": {
529
+ "patterns": [
530
+ {
531
+ "name": "punctuation.whitespace.trailing.tab.hard-tab",
532
+ "match": "\\t"
533
+ }
534
+ ]
535
+ }
536
+ }
537
+ },
538
+ {
539
+ "name": "punctuation.whitespace.tab.hard-tab",
540
+ "match": "\\t"
541
+ }
542
+ ]
543
+ },
285
544
  "url": {
286
545
  "patterns": [
287
546
  {
@@ -3,7 +3,7 @@
3
3
  "patterns": [
4
4
  {
5
5
  "name": "manref",
6
- "match": "([^\\s()\u003c\u003e/\"'`{}!:\u0026*#?\\\\]+)((\\()([0-9])(?!\\.|(?\u003c=0)(?:[Xx][0-9A-Fa-f]+|[OoBb][0-9]+))([^()\\s]*)(\\)))",
6
+ "match": "(?xi)\n# Subject\n([^\\s()\u003c\u003e/\"'`{}!\u0026*\\#?\\\\]+)\n\n# Section\n((?i)\n\t(\\()\n\t( [0-9](?![0-9]) # Section number\n\t| (?:[lnop]|tcl)(?=[/)]) # Non-numeric section\n\t)\n\t\n\t# Section group\n\t([a-z_0-9:/]*?(?:/(?!/)[-a-z_0-9:./]+)?)\n\t(\\))\n)",
7
7
  "captures": {
8
8
  "1": {
9
9
  "name": "manref.subject"
@@ -0,0 +1,28 @@
1
+ {
2
+ "scopeName": "hidden.regexp.injection-shell",
3
+ "patterns": [
4
+ {
5
+ "begin": "\\s+(=~)\\s+(?=[^'\"\\s])(?!\\]\\])",
6
+ "end": "[ \\t]",
7
+ "patterns": [
8
+ {
9
+ "match": "\\G((?:[^\\\\\\s]|\\\\.)++)",
10
+ "captures": {
11
+ "1": {
12
+ "patterns": [
13
+ {
14
+ "include": "source.regexp"
15
+ }
16
+ ]
17
+ }
18
+ }
19
+ }
20
+ ],
21
+ "beginCaptures": {
22
+ "1": {
23
+ "name": "keyword.operator.logical.shell"
24
+ }
25
+ }
26
+ }
27
+ ]
28
+ }
@@ -62,6 +62,9 @@
62
62
  {
63
63
  "include": "#constant_4d"
64
64
  },
65
+ {
66
+ "include": "#this-function"
67
+ },
65
68
  {
66
69
  "include": "#numbers"
67
70
  },
@@ -109,6 +112,22 @@
109
112
  },
110
113
  {
111
114
  "include": "#method_access"
115
+ },
116
+ {
117
+ "name": "entity.name.class.4d",
118
+ "match": "^\\n*[\\t ]*(?i)(Class constructor)"
119
+ },
120
+ {
121
+ "name": "variable.language.function.4d",
122
+ "match": "^\\n*[\\t ]*(?i)(Function)(\\s[a-z_0-9]+[a-z_0-9 ]*)"
123
+ },
124
+ {
125
+ "name": "entity.name.class.4d",
126
+ "match": "^\\n*[\\t ]*(?i)(Class extends)(\\s[a-z_0-9]+[a-z_0-9 ]*)"
127
+ },
128
+ {
129
+ "name": "variable.language.super.4d",
130
+ "match": "^\\n*[\\t ]*(?i)(Super(\\:C1705)?)"
112
131
  }
113
132
  ],
114
133
  "repository": {
@@ -117,6 +136,9 @@
117
136
  "begin": "^((?i)(?:\\$|\u003c\u003e|)(?:\\$|\u003c\u003e|)[a-z_0-9]+[a-z_0-9 ]*)(:=)",
118
137
  "end": "(\\n)",
119
138
  "patterns": [
139
+ {
140
+ "include": "#this-function"
141
+ },
120
142
  {
121
143
  "include": "#function-call-innards"
122
144
  },
@@ -282,6 +304,21 @@
282
304
  }
283
305
  }
284
306
  },
307
+ {
308
+ "name": "comment.block.4d",
309
+ "begin": "/\\*",
310
+ "end": "\\*/",
311
+ "beginCaptures": {
312
+ "0": {
313
+ "name": "punctuation.definition.comment.begin.4d"
314
+ }
315
+ },
316
+ "endCaptures": {
317
+ "0": {
318
+ "name": "punctuation.definition.comment.end.4d"
319
+ }
320
+ }
321
+ },
285
322
  {
286
323
  "name": "comment.line.banner.4d",
287
324
  "match": "^//=(\\s*.*?)\\s*=\\s*$\\n?",
@@ -357,6 +394,9 @@
357
394
  "begin": "(?x)\n(?!\\s*\\()\n(\n(?:[A-Za-z_ ][A-Za-z0-9_]*+)++(\\:C[0-9]+)? # actual name\n|\n(?:(?\u003c=operator)(?:[-*\u0026\u003c\u003e=+#]+|\\(\\)))\n)\n\\s*(\\()",
358
395
  "end": "\\)",
359
396
  "patterns": [
397
+ {
398
+ "include": "#this-function"
399
+ },
360
400
  {
361
401
  "include": "#function-call-innards"
362
402
  },
@@ -420,6 +460,9 @@
420
460
  },
421
461
  {
422
462
  "include": "#table_reference"
463
+ },
464
+ {
465
+ "include": "#this-function"
423
466
  }
424
467
  ],
425
468
  "beginCaptures": {
@@ -443,7 +486,7 @@
443
486
  "patterns": [
444
487
  {
445
488
  "name": "keyword.control.4d",
446
- "match": "^\\n*[\\t ]*(?i)(If|While|Else|End if|For each|End for each|End for|Begin SQL|End SQL|while|End while|Use|End use|Case of|End case|Repeat|Until|For)"
489
+ "match": "^\\n*[\\t ]*(?i)(If|While|Else|End if|For each|End for each|End for|Begin SQL|End SQL|while|End while|Use|End use|Case of|End case|Repeat|Until|For)\\b"
447
490
  }
448
491
  ]
449
492
  },
@@ -501,6 +544,9 @@
501
544
  },
502
545
  "5": {
503
546
  "patterns": [
547
+ {
548
+ "include": "#this-function"
549
+ },
504
550
  {
505
551
  "include": "#member_access"
506
552
  },
@@ -559,6 +605,9 @@
559
605
  },
560
606
  {
561
607
  "include": "#table_reference"
608
+ },
609
+ {
610
+ "include": "#this-function"
562
611
  }
563
612
  ],
564
613
  "beginCaptures": {
@@ -582,6 +631,9 @@
582
631
  {
583
632
  "include": "#method_access"
584
633
  },
634
+ {
635
+ "include": "#this-function"
636
+ },
585
637
  {
586
638
  "match": "((?:[a-zA-Z_]\\w*|(?\u003c=\\]|\\)))\\s*)(?:((?:\\.\\*|\\.))|((?:-\u003e\\*|-\u003e)))",
587
639
  "captures": {
@@ -1063,6 +1115,10 @@
1063
1115
  }
1064
1116
  }
1065
1117
  },
1118
+ "this-function": {
1119
+ "name": "variable.language.this.4d",
1120
+ "match": "(^\\n*[\\t ]*(?i)(This(\\:C1470)?))|((?i)(This(\\:C1470)?))"
1121
+ },
1066
1122
  "variant_variable": {
1067
1123
  "name": "storage.type.variant.4d",
1068
1124
  "begin": "^\\n*[\\t ]*(?i)(C_VARIANT(\\:C1683)?)(\\()((?i)(?:\\$|\u003c\u003e|)(?:\\$|\u003c\u003e|)[a-z_0-9]+[a-z_0-9 ]*)",