github-linguist 5.2.0 → 5.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/annotation.liquidhaskell.haskell.json +1445 -0
  3. data/grammars/hint.haskell.json +134 -17
  4. data/grammars/hint.message.haskell.json +134 -17
  5. data/grammars/hint.type.haskell.json +134 -17
  6. data/grammars/source.abl.json +48 -48
  7. data/grammars/source.afm.json +8 -1
  8. data/grammars/source.angelscript.json +195 -0
  9. data/grammars/source.ats.json +128 -58
  10. data/grammars/source.awk.json +138 -138
  11. data/grammars/source.ballerina.json +434 -0
  12. data/grammars/source.chapel.json +1 -1
  13. data/grammars/source.clips.json +20 -20
  14. data/grammars/source.cobol.json +4 -3
  15. data/grammars/source.coffee.json +556 -109
  16. data/grammars/source.cs.json +10 -5
  17. data/grammars/source.csound-document.json +1 -1
  18. data/grammars/source.csound-score.json +9 -9
  19. data/grammars/source.csound.json +23 -28
  20. data/grammars/source.css.json +6 -5
  21. data/grammars/source.data-weave.json +1584 -0
  22. data/grammars/source.elixir.json +3 -61
  23. data/grammars/source.elm.json +88 -88
  24. data/grammars/source.emacs.lisp.json +12 -1
  25. data/grammars/source.haskell.json +134 -17
  26. data/grammars/source.hsig.json +1376 -0
  27. data/grammars/source.httpspec.json +128 -128
  28. data/grammars/source.jison.json +6 -14
  29. data/grammars/source.jisonlex.json +1 -9
  30. data/grammars/source.js.json +1 -0
  31. data/grammars/source.js.regexp.json +0 -4
  32. data/grammars/source.js.regexp.replacement.json +0 -4
  33. data/grammars/source.jsdoc.json +3 -3
  34. data/grammars/source.lsl.json +146 -53
  35. data/grammars/source.mercury.json +166 -166
  36. data/grammars/source.ne.json +108 -0
  37. data/grammars/source.nim_filter.json +51 -51
  38. data/grammars/source.nut.json +266 -0
  39. data/grammars/source.opal.json +112 -112
  40. data/grammars/source.opalsysdefs.json +16 -16
  41. data/grammars/source.pan.json +1 -1
  42. data/grammars/source.papyrus.skyrim.json +720 -720
  43. data/grammars/source.pawn.json +2 -2
  44. data/grammars/source.prolog.eclipse.json +42 -42
  45. data/grammars/source.prolog.json +41 -41
  46. data/grammars/source.purescript.json +41 -25
  47. data/grammars/source.python.json +47 -34
  48. data/grammars/source.racket.json +54 -54
  49. data/grammars/source.reason.json +37 -3
  50. data/grammars/source.regexp.python.json +31 -0
  51. data/grammars/source.ruby.gemfile.json +27 -0
  52. data/grammars/source.ruby.json +1057 -356
  53. data/grammars/source.rust.json +1 -1
  54. data/grammars/source.sbt.json +13 -3
  55. data/grammars/source.scala.json +74 -55
  56. data/grammars/source.shaderlab.json +1 -1
  57. data/grammars/source.shell.json +26 -21
  58. data/grammars/source.shen.json +91 -91
  59. data/grammars/source.sqf.json +1 -1
  60. data/grammars/source.supercollider.json +1 -1
  61. data/grammars/source.swift.json +4 -0
  62. data/grammars/source.terra.json +36 -37
  63. data/grammars/source.terraform.json +98 -98
  64. data/grammars/source.ts.json +2231 -1677
  65. data/grammars/source.tsx.json +142 -3520
  66. data/grammars/source.vbnet.json +201 -263
  67. data/grammars/source.viml.json +2 -2
  68. data/grammars/source.wdl.json +200 -0
  69. data/grammars/source.yaml.json +34 -16
  70. data/grammars/text.find-refs.json +3 -3
  71. data/grammars/text.haml.json +1 -1
  72. data/grammars/text.html.abl.json +6 -6
  73. data/grammars/text.html.erb.json +8 -11
  74. data/grammars/text.html.php.blade.json +256 -220
  75. data/grammars/text.html.vue.json +1 -1
  76. data/grammars/text.slim.json +31 -17
  77. data/grammars/text.tex.latex.haskell.json +150 -33
  78. data/lib/linguist/heuristics.rb +8 -0
  79. data/lib/linguist/languages.json +1 -1
  80. data/lib/linguist/languages.yml +82 -26
  81. data/lib/linguist/samples.json +134512 -132868
  82. data/lib/linguist/vendor.yml +3 -0
  83. data/lib/linguist/version.rb +1 -1
  84. metadata +13 -4
@@ -1,8 +1,10 @@
1
1
  {
2
+ "name": "HTTP Spec",
3
+ "scopeName": "source.httpspec",
2
4
  "fileTypes": [
3
5
  "httpspec"
4
6
  ],
5
- "name": "HTTP Spec",
7
+ "uuid": "7bb6ff35-8b8a-4480-91ec-20f2d3fcba9a",
6
8
  "patterns": [
7
9
  {
8
10
  "name": "meta.request.httpspec",
@@ -20,104 +22,14 @@
20
22
  }
21
23
  ],
22
24
  "repository": {
23
- "ampersand": {
24
- "patterns": [
25
- {
26
- "match": "(?<!\\&)\\&(?!\\&)",
27
- "name": "support.function.ampersand.httpspec"
28
- }
29
- ]
30
- },
31
- "closingbracket": {
32
- "patterns": [
33
- {
34
- "name": "keyword.other.multiplexend.httpspec"
35
- },
36
- {
37
- "match": "\\]"
38
- }
39
- ]
40
- },
41
- "comma": {
42
- "patterns": [
43
- {
44
- "match": "\\,",
45
- "name": "keyword.other.comma.httpspec.test"
46
- }
47
- ]
48
- },
49
- "emptyline": {
50
- "patterns": [
51
- {
52
- "match": "^\\s*$"
53
- }
54
- ]
55
- },
56
- "equals": {
57
- "patterns": [
58
- {
59
- "match": "\\=",
60
- "name": "support.function.keyvaluepairseparator.httpspec"
61
- }
62
- ]
63
- },
64
- "header": {
65
- "patterns": [
66
- {
67
- "captures": {
68
- "1": {
69
- "name": "variable.parameter.headername.httpspec"
70
- }
71
- },
72
- "match": "^([a-zA-Z\\-_]+\\:)\\s(.*)$",
73
- "name": "string.unquoted.uri.httpspec"
74
- }
75
- ]
76
- },
77
- "invalidcomma": {
78
- "patterns": [
79
- {
80
- "match": "^\\,|\\,(?=\\s)",
81
- "name": "invalid.illegal.comma.httpspec"
82
- }
83
- ]
84
- },
85
- "jsonblock": {
86
- "patterns": [
87
- {
88
- "include": "source.json"
89
- }
90
- ]
91
- },
92
- "methodlist": {
93
- "patterns": [
94
- {
95
- "include": "#methodname"
96
- },
97
- {
98
- "include": "#invalidcomma"
99
- },
100
- {
101
- "include": "#comma"
102
- }
103
- ]
104
- },
105
- "methodname": {
106
- "patterns": [
107
- {
108
- "match": "(?:\\b)(OPTIONS|HEAD|GET|DELETE|PUT|PATCH|POST)",
109
- "name": "keyword.other.method.httpspec"
110
- }
111
- ]
112
- },
113
25
  "multiplex": {
114
26
  "begin": "(\\[)",
27
+ "end": "\\]",
115
28
  "beginCaptures": {
116
29
  "0": {
117
30
  "name": "keyword.other"
118
31
  }
119
32
  },
120
- "end": "\\]",
121
33
  "endCaptures": {
122
34
  "0": {
123
35
  "name": "keyword.other"
@@ -132,32 +44,48 @@
132
44
  }
133
45
  ]
134
46
  },
135
- "namevaluepair": {
47
+ "header": {
136
48
  "patterns": [
137
49
  {
138
- "include": "#uriqueryname"
50
+ "name": "string.unquoted.uri.httpspec",
51
+ "match": "^([a-zA-Z\\-_]+\\:)\\s(.*)$",
52
+ "captures": {
53
+ "1": {
54
+ "name": "variable.parameter.headername.httpspec"
55
+ }
56
+ }
57
+ }
58
+ ]
59
+ },
60
+ "response": {
61
+ "patterns": [
62
+ {
63
+ "include": "#statusline"
139
64
  },
140
65
  {
141
- "include": "#equals"
66
+ "include": "#header"
142
67
  },
143
68
  {
144
- "include": "#uriqueryvalue"
69
+ "include": "#jsonblock"
145
70
  }
146
71
  ]
147
72
  },
148
- "openingbracket": {
73
+ "jsonblock": {
149
74
  "patterns": [
150
75
  {
151
- "match": "\\[",
152
- "name": "keyword.other.multiplexstart.httpspec"
76
+ "include": "source.json"
153
77
  }
154
78
  ]
155
79
  },
156
- "questionmark": {
80
+ "statusline": {
157
81
  "patterns": [
158
82
  {
159
- "match": "\\?",
160
- "name": "support.function.queryseparator.httpspec"
83
+ "match": "^(\\d\\d\\d)\\s(.*)$",
84
+ "captures": {
85
+ "0": {
86
+ "name": "constant.language.statustext.httpspec"
87
+ }
88
+ }
161
89
  }
162
90
  ]
163
91
  },
@@ -180,6 +108,31 @@
180
108
  }
181
109
  ]
182
110
  },
111
+ "openingbracket": {
112
+ "patterns": [
113
+ {
114
+ "name": "keyword.other.multiplexstart.httpspec",
115
+ "match": "\\["
116
+ }
117
+ ]
118
+ },
119
+ "closingbracket": {
120
+ "patterns": [
121
+ {
122
+ "name": "keyword.other.multiplexend.httpspec"
123
+ },
124
+ {
125
+ "match": "\\]"
126
+ }
127
+ ]
128
+ },
129
+ "emptyline": {
130
+ "patterns": [
131
+ {
132
+ "match": "^\\s*$"
133
+ }
134
+ ]
135
+ },
183
136
  "requestline": {
184
137
  "patterns": [
185
138
  {
@@ -190,28 +143,40 @@
190
143
  }
191
144
  ]
192
145
  },
193
- "response": {
146
+ "methodlist": {
194
147
  "patterns": [
195
148
  {
196
- "include": "#statusline"
149
+ "include": "#methodname"
197
150
  },
198
151
  {
199
- "include": "#header"
152
+ "include": "#invalidcomma"
200
153
  },
201
154
  {
202
- "include": "#jsonblock"
155
+ "include": "#comma"
203
156
  }
204
157
  ]
205
158
  },
206
- "statusline": {
159
+ "methodname": {
207
160
  "patterns": [
208
161
  {
209
- "captures": {
210
- "0": {
211
- "name": "constant.language.statustext.httpspec"
212
- }
213
- },
214
- "match": "^(\\d\\d\\d)\\s(.*)$"
162
+ "name": "keyword.other.method.httpspec",
163
+ "match": "(?:\\b)(OPTIONS|HEAD|GET|DELETE|PUT|PATCH|POST)"
164
+ }
165
+ ]
166
+ },
167
+ "comma": {
168
+ "patterns": [
169
+ {
170
+ "name": "keyword.other.comma.httpspec.test",
171
+ "match": "\\,"
172
+ }
173
+ ]
174
+ },
175
+ "invalidcomma": {
176
+ "patterns": [
177
+ {
178
+ "name": "invalid.illegal.comma.httpspec",
179
+ "match": "^\\,|\\,(?=\\s)"
215
180
  }
216
181
  ]
217
182
  },
@@ -231,19 +196,12 @@
231
196
  }
232
197
  ]
233
198
  },
234
- "uripart": {
235
- "patterns": [
236
- {
237
- "match": "([a-bA-B0-9\\-_/]+)"
238
- }
239
- ]
240
- },
241
199
  "uripath": {
242
200
  "patterns": [
243
201
  {
202
+ "name": "support.function.httpspec",
244
203
  "begin": "(?:\\s)\\/",
245
204
  "end": "(?:$)",
246
- "name": "support.function.httpspec",
247
205
  "patterns": [
248
206
  {
249
207
  "include": "#uripart"
@@ -255,6 +213,21 @@
255
213
  }
256
214
  ]
257
215
  },
216
+ "uripart": {
217
+ "patterns": [
218
+ {
219
+ "match": "([a-bA-B0-9\\-_/]+)"
220
+ }
221
+ ]
222
+ },
223
+ "questionmark": {
224
+ "patterns": [
225
+ {
226
+ "name": "support.function.queryseparator.httpspec",
227
+ "match": "\\?"
228
+ }
229
+ ]
230
+ },
258
231
  "uriquery": {
259
232
  "patterns": [
260
233
  {
@@ -265,23 +238,50 @@
265
238
  }
266
239
  ]
267
240
  },
241
+ "namevaluepair": {
242
+ "patterns": [
243
+ {
244
+ "include": "#uriqueryname"
245
+ },
246
+ {
247
+ "include": "#equals"
248
+ },
249
+ {
250
+ "include": "#uriqueryvalue"
251
+ }
252
+ ]
253
+ },
268
254
  "uriqueryname": {
269
255
  "patterns": [
270
256
  {
271
- "match": "(?<=[?&])([^=&])+",
272
- "name": "support.function.uriqueryname.httpspec"
257
+ "name": "support.function.uriqueryname.httpspec",
258
+ "match": "(?<=[?&])([^=&])+"
259
+ }
260
+ ]
261
+ },
262
+ "equals": {
263
+ "patterns": [
264
+ {
265
+ "name": "support.function.keyvaluepairseparator.httpspec",
266
+ "match": "\\="
273
267
  }
274
268
  ]
275
269
  },
276
270
  "uriqueryvalue": {
277
271
  "patterns": [
278
272
  {
279
- "match": "(?<=\\=)([^=&]+)",
280
- "name": "support.function.uriqueryvalue.httpspec"
273
+ "name": "support.function.uriqueryvalue.httpspec",
274
+ "match": "(?<=\\=)([^=&]+)"
275
+ }
276
+ ]
277
+ },
278
+ "ampersand": {
279
+ "patterns": [
280
+ {
281
+ "name": "support.function.ampersand.httpspec",
282
+ "match": "(?<!\\&)\\&(?!\\&)"
281
283
  }
282
284
  ]
283
285
  }
284
- },
285
- "scopeName": "source.httpspec",
286
- "uuid": "7bb6ff35-8b8a-4480-91ec-20f2d3fcba9a"
286
+ }
287
287
  }
@@ -63,7 +63,7 @@
63
63
  "include": "#comments"
64
64
  },
65
65
  {
66
- "begin": "^\\s*(%lex)\\s*(?=\\n)",
66
+ "begin": "^\\s*(%lex)\\s*$",
67
67
  "end": "^\\s*(/lex)\\b",
68
68
  "beginCaptures": {
69
69
  "1": {
@@ -110,7 +110,7 @@
110
110
  {
111
111
  "name": "meta.section.rules.jisonlex",
112
112
  "begin": "\\G",
113
- "end": "(?=^(?:%%|/lex))",
113
+ "end": "^(?=%%|/lex)",
114
114
  "patterns": [
115
115
  {
116
116
  "include": "source.jisonlex#rules_section"
@@ -121,7 +121,7 @@
121
121
  },
122
122
  {
123
123
  "name": "meta.section.definitions.jisonlex",
124
- "begin": "\\G",
124
+ "begin": "^",
125
125
  "end": "(?=%%|/lex)",
126
126
  "patterns": [
127
127
  {
@@ -436,20 +436,12 @@
436
436
  {
437
437
  "name": "meta.action.jison",
438
438
  "begin": "->|→",
439
- "end": "((//).*)?(?=$)",
439
+ "end": "$",
440
440
  "beginCaptures": {
441
441
  "0": {
442
442
  "name": "punctuation.definition.action.arrow.jison"
443
443
  }
444
444
  },
445
- "endCaptures": {
446
- "1": {
447
- "name": "comment.line.double-slash.js"
448
- },
449
- "2": {
450
- "name": "punctuation.definition.comment.js"
451
- }
452
- },
453
445
  "contentName": "source.js.embedded.jison",
454
446
  "patterns": [
455
447
  {
@@ -464,7 +456,7 @@
464
456
  {
465
457
  "name": "comment.line.double-slash.jison",
466
458
  "begin": "//",
467
- "end": "(?=\\n)",
459
+ "end": "$",
468
460
  "beginCaptures": {
469
461
  "0": {
470
462
  "name": "punctuation.definition.comment.jison"
@@ -707,7 +699,7 @@
707
699
  },
708
700
  {
709
701
  "name": "variable.language.jison",
710
- "match": "\\byy(?:l(?:eng|ineno|oc|stack)|s(?:tate|s?tack)|text|vstack)\\b"
702
+ "match": "\\byy(?:l(?:eng|ineno|oc|stack)|rulelength|s(?:tate|s?tack)|text|vstack)\\b"
711
703
  },
712
704
  {
713
705
  "name": "keyword.other.jison",
@@ -190,15 +190,7 @@
190
190
  {
191
191
  "name": "meta.rule.action.jisonlex",
192
192
  "begin": "(?=\\S)",
193
- "end": "((//).*)?(?=$)",
194
- "endCaptures": {
195
- "1": {
196
- "name": "comment.line.double-slash.js"
197
- },
198
- "2": {
199
- "name": "punctuation.definition.comment.js"
200
- }
201
- },
193
+ "end": "$",
202
194
  "contentName": "source.js.embedded.jison",
203
195
  "patterns": [
204
196
  {
@@ -12,6 +12,7 @@
12
12
  "jsm",
13
13
  "json5",
14
14
  "jspre",
15
+ "mjs",
15
16
  "pac",
16
17
  "pjs",
17
18
  "sjs",
@@ -1,9 +1,5 @@
1
1
  {
2
2
  "scopeName": "source.js.regexp",
3
- "name": "Regular Expressions (JavaScript)",
4
- "fileTypes": [
5
-
6
- ],
7
3
  "patterns": [
8
4
  {
9
5
  "include": "#regexp"