github-linguist 4.8.9 → 4.8.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/bin/git-linguist +2 -2
  3. data/grammars/source.ats.json +58 -128
  4. data/grammars/source.autoit.json +158 -153
  5. data/grammars/source.awk.json +333 -383
  6. data/grammars/source.batchfile.json +194 -0
  7. data/grammars/source.c.platform.json +359 -22
  8. data/grammars/source.changelogs.rpm-spec.json +99 -0
  9. data/grammars/source.clojure.json +9 -3
  10. data/grammars/source.dockerfile.json +67 -78
  11. data/grammars/source.elm.json +20 -379
  12. data/grammars/source.emacs.lisp.json +656 -0
  13. data/grammars/source.gdscript.json +233 -228
  14. data/grammars/source.graphql.json +75 -10
  15. data/grammars/source.js.json +2 -2
  16. data/grammars/source.js.jsx.json +247 -839
  17. data/grammars/source.js.regexp.json +1 -1
  18. data/grammars/source.nginx.json +882 -768
  19. data/grammars/source.nsis.json +151 -143
  20. data/grammars/source.objc.json +3 -0
  21. data/grammars/source.objc.platform.json +174 -104
  22. data/grammars/source.puppet.json +429 -396
  23. data/grammars/source.pyjade.json +11 -0
  24. data/grammars/source.regexp.babel.json +1 -1
  25. data/grammars/source.rpm-spec.json +770 -0
  26. data/grammars/source.systemverilog.json +1110 -961
  27. data/grammars/source.ts.json +57 -57
  28. data/grammars/source.tsx.json +57 -57
  29. data/grammars/text.dart-analysis-output.json +67 -152
  30. data/grammars/text.error-list.json +54 -0
  31. data/grammars/text.find-refs.json +927 -0
  32. data/grammars/text.html.basic.json +1 -1
  33. data/grammars/text.html.mediawiki.elm-build-output.json +108 -0
  34. data/grammars/text.html.mediawiki.elm-documentation.json +22 -0
  35. data/grammars/text.html.vue.json +35 -0
  36. data/grammars/text.jade.json +34 -12
  37. data/grammars/text.roff.json +1 -1
  38. data/lib/linguist/heuristics.rb +16 -4
  39. data/lib/linguist/languages.json +1 -1
  40. data/lib/linguist/languages.yml +25 -5
  41. data/lib/linguist/samples.json +1367 -163
  42. data/lib/linguist/version.rb +1 -1
  43. metadata +10 -3
  44. data/grammars/source.dosbatch.json +0 -70
@@ -73,7 +73,7 @@
73
73
  "name": "constant.language.boolean.ts"
74
74
  },
75
75
  "case-clause": {
76
- "begin": "(?<!\\.)\\b(case|default)\\b",
76
+ "begin": "(?<!\\.)\\b(case|default(?=:))\\b",
77
77
  "beginCaptures": {
78
78
  "1": {
79
79
  "name": "keyword.control.ts"
@@ -83,7 +83,7 @@
83
83
  "name": "case-clause.expr.ts",
84
84
  "patterns": [
85
85
  {
86
- "include": "#expression"
86
+ "include": "#expression-type"
87
87
  }
88
88
  ]
89
89
  },
@@ -275,6 +275,59 @@
275
275
  "match": "\\b(delete|in|instanceof|new|typeof|as|is|of)\\b",
276
276
  "name": "keyword.others.ts"
277
277
  },
278
+ "expression-type": {
279
+ "name": "meta.expression.ts",
280
+ "patterns": [
281
+ {
282
+ "include": "#string"
283
+ },
284
+ {
285
+ "include": "#regex"
286
+ },
287
+ {
288
+ "include": "#template"
289
+ },
290
+ {
291
+ "include": "#comment"
292
+ },
293
+ {
294
+ "include": "#literal"
295
+ },
296
+ {
297
+ "include": "#paren-expression"
298
+ },
299
+ {
300
+ "include": "#ternary-expression"
301
+ },
302
+ {
303
+ "include": "#import-operator"
304
+ },
305
+ {
306
+ "include": "#expression-operator"
307
+ },
308
+ {
309
+ "include": "#imply-operator"
310
+ },
311
+ {
312
+ "include": "#relational-operator"
313
+ },
314
+ {
315
+ "include": "#arithmetic-operator"
316
+ },
317
+ {
318
+ "include": "#logic-operator"
319
+ },
320
+ {
321
+ "include": "#assignment-operator"
322
+ },
323
+ {
324
+ "include": "#type-primitive"
325
+ },
326
+ {
327
+ "include": "#function-call"
328
+ }
329
+ ]
330
+ },
278
331
  "field-declaration": {
279
332
  "begin": "(?<!\\()\\s*((?:\\b[a-zA-Z_$][\\w$]*)|(?:\\'[^']*\\')|(?:\\\"[^\"]*\\\"))\\s*(\\?\\s*)?(?=(=|:))",
280
333
  "beginCaptures": {
@@ -936,60 +989,7 @@
936
989
  "include": "#ternary-operator"
937
990
  },
938
991
  {
939
- "include": "#ternary-expression-type"
940
- }
941
- ]
942
- },
943
- "ternary-expression-type": {
944
- "name": "meta.expression.ts",
945
- "patterns": [
946
- {
947
- "include": "#string"
948
- },
949
- {
950
- "include": "#regex"
951
- },
952
- {
953
- "include": "#template"
954
- },
955
- {
956
- "include": "#comment"
957
- },
958
- {
959
- "include": "#literal"
960
- },
961
- {
962
- "include": "#paren-expression"
963
- },
964
- {
965
- "include": "#ternary-expression"
966
- },
967
- {
968
- "include": "#import-operator"
969
- },
970
- {
971
- "include": "#expression-operator"
972
- },
973
- {
974
- "include": "#imply-operator"
975
- },
976
- {
977
- "include": "#relational-operator"
978
- },
979
- {
980
- "include": "#arithmetic-operator"
981
- },
982
- {
983
- "include": "#logic-operator"
984
- },
985
- {
986
- "include": "#assignment-operator"
987
- },
988
- {
989
- "include": "#type-primitive"
990
- },
991
- {
992
- "include": "#function-call"
992
+ "include": "#expression-type"
993
993
  }
994
994
  ]
995
995
  },
@@ -998,7 +998,7 @@
998
998
  "end": "(:)",
999
999
  "patterns": [
1000
1000
  {
1001
- "include": "#ternary-expression-type"
1001
+ "include": "#expression-type"
1002
1002
  }
1003
1003
  ]
1004
1004
  },
@@ -73,7 +73,7 @@
73
73
  "name": "constant.language.boolean.tsx"
74
74
  },
75
75
  "case-clause": {
76
- "begin": "(?<!\\.)\\b(case|default)\\b",
76
+ "begin": "(?<!\\.)\\b(case|default(?=:))\\b",
77
77
  "beginCaptures": {
78
78
  "1": {
79
79
  "name": "keyword.control.tsx"
@@ -83,7 +83,7 @@
83
83
  "name": "case-clause.expr.tsx",
84
84
  "patterns": [
85
85
  {
86
- "include": "#expression"
86
+ "include": "#expression-type"
87
87
  }
88
88
  ]
89
89
  },
@@ -255,6 +255,59 @@
255
255
  "match": "\\b(delete|in|instanceof|new|typeof|as|is|of)\\b",
256
256
  "name": "keyword.others.tsx"
257
257
  },
258
+ "expression-type": {
259
+ "name": "meta.expression.tsx",
260
+ "patterns": [
261
+ {
262
+ "include": "#string"
263
+ },
264
+ {
265
+ "include": "#regex"
266
+ },
267
+ {
268
+ "include": "#template"
269
+ },
270
+ {
271
+ "include": "#comment"
272
+ },
273
+ {
274
+ "include": "#literal"
275
+ },
276
+ {
277
+ "include": "#paren-expression"
278
+ },
279
+ {
280
+ "include": "#ternary-expression"
281
+ },
282
+ {
283
+ "include": "#import-operator"
284
+ },
285
+ {
286
+ "include": "#expression-operator"
287
+ },
288
+ {
289
+ "include": "#imply-operator"
290
+ },
291
+ {
292
+ "include": "#relational-operator"
293
+ },
294
+ {
295
+ "include": "#arithmetic-operator"
296
+ },
297
+ {
298
+ "include": "#logic-operator"
299
+ },
300
+ {
301
+ "include": "#assignment-operator"
302
+ },
303
+ {
304
+ "include": "#type-primitive"
305
+ },
306
+ {
307
+ "include": "#function-call"
308
+ }
309
+ ]
310
+ },
258
311
  "field-declaration": {
259
312
  "begin": "(?<!\\()\\s*((?:\\b[a-zA-Z_$][\\w$]*)|(?:\\'[^']*\\')|(?:\\\"[^\"]*\\\"))\\s*(\\?\\s*)?(?=(=|:))",
260
313
  "beginCaptures": {
@@ -1169,60 +1222,7 @@
1169
1222
  "include": "#ternary-operator"
1170
1223
  },
1171
1224
  {
1172
- "include": "#ternary-expression-type"
1173
- }
1174
- ]
1175
- },
1176
- "ternary-expression-type": {
1177
- "name": "meta.expression.tsx",
1178
- "patterns": [
1179
- {
1180
- "include": "#string"
1181
- },
1182
- {
1183
- "include": "#regex"
1184
- },
1185
- {
1186
- "include": "#template"
1187
- },
1188
- {
1189
- "include": "#comment"
1190
- },
1191
- {
1192
- "include": "#literal"
1193
- },
1194
- {
1195
- "include": "#paren-expression"
1196
- },
1197
- {
1198
- "include": "#ternary-expression"
1199
- },
1200
- {
1201
- "include": "#import-operator"
1202
- },
1203
- {
1204
- "include": "#expression-operator"
1205
- },
1206
- {
1207
- "include": "#imply-operator"
1208
- },
1209
- {
1210
- "include": "#relational-operator"
1211
- },
1212
- {
1213
- "include": "#arithmetic-operator"
1214
- },
1215
- {
1216
- "include": "#logic-operator"
1217
- },
1218
- {
1219
- "include": "#assignment-operator"
1220
- },
1221
- {
1222
- "include": "#type-primitive"
1223
- },
1224
- {
1225
- "include": "#function-call"
1225
+ "include": "#expression-type"
1226
1226
  }
1227
1227
  ]
1228
1228
  },
@@ -1231,7 +1231,7 @@
1231
1231
  "end": "(:)",
1232
1232
  "patterns": [
1233
1233
  {
1234
- "include": "#ternary-expression-type"
1234
+ "include": "#expression-type"
1235
1235
  }
1236
1236
  ]
1237
1237
  },
@@ -1,162 +1,77 @@
1
1
  {
2
2
  "name": "Dart Analysis Output",
3
- "patterns": [
4
- {
5
- "captures": {
6
- "1": {
7
- "name": "analysis.severity.error.dart-analysis-output"
8
- },
9
- "10": {
10
- "name": "field.separator.dart-analysis-output"
11
- },
12
- "11": {
13
- "name": "message.dart-analysis-output"
14
- },
15
- "2": {
16
- "name": "field.separator.dart-analysis-output"
17
- },
18
- "3": {
19
- "name": "analysis.type.dart-analysis-output"
20
- },
21
- "4": {
22
- "name": "field.separator.dart-analysis-output"
23
- },
24
- "5": {
25
- "name": "file.name.dart-analysis-output"
26
- },
27
- "6": {
28
- "name": "field.separator.dart-analysis-output"
29
- },
30
- "7": {
31
- "name": "row.dart-analysis-output"
32
- },
33
- "8": {
34
- "name": "field.separator.dart-analysis-output"
35
- },
36
- "9": {
37
- "name": "column.dart-analysis-output"
3
+ "hidden": false,
4
+ "scope": "text.dart-analysis-output",
5
+ "contexts": {
6
+ "main": [
7
+ {
8
+ "match": "^(ERROR)(\\|)(\\w+)(\\|)(.+)(\\|)(\\d+)(\\|)(\\d+)(\\|)(.+)$",
9
+ "scope": "analysis.result.dart-analysis-output",
10
+ "captures": {
11
+ "1": "analysis.severity.error.dart-analysis-output",
12
+ "2": "field.separator.dart-analysis-output",
13
+ "3": "analysis.type.dart-analysis-output",
14
+ "4": "field.separator.dart-analysis-output",
15
+ "5": "file.name.dart-analysis-output",
16
+ "6": "field.separator.dart-analysis-output",
17
+ "7": "row.dart-analysis-output",
18
+ "8": "field.separator.dart-analysis-output",
19
+ "9": "column.dart-analysis-output",
20
+ "10": "field.separator.dart-analysis-output",
21
+ "11": "message.dart-analysis-output"
38
22
  }
39
23
  },
40
- "match": "^(ERROR)(\\|)(\\w+)(\\|)(.+)(\\|)(\\d+)(\\|)(\\d+)(\\|)(.+)$",
41
- "name": "analysis.result.dart-analysis-output"
42
- },
43
- {
44
- "captures": {
45
- "1": {
46
- "name": "analysis.severity.warning.dart-analysis-output"
47
- },
48
- "10": {
49
- "name": "field.separator.dart-analysis-output"
50
- },
51
- "11": {
52
- "name": "message.dart-analysis-output"
53
- },
54
- "2": {
55
- "name": "field.separator.dart-analysis-output"
56
- },
57
- "3": {
58
- "name": "analysis.type.dart-analysis-output"
59
- },
60
- "4": {
61
- "name": "field.separator.dart-analysis-output"
62
- },
63
- "5": {
64
- "name": "file.name.dart-analysis-output"
65
- },
66
- "6": {
67
- "name": "field.separator.dart-analysis-output"
68
- },
69
- "7": {
70
- "name": "row.dart-analysis-output"
71
- },
72
- "8": {
73
- "name": "field.separator.dart-analysis-output"
74
- },
75
- "9": {
76
- "name": "column.dart-analysis-output"
24
+ {
25
+ "match": "^(WARNING)(\\|)(\\w+)(\\|)(.+)(\\|)(\\d+)(\\|)(\\d+)(\\|)(.+)$",
26
+ "scope": "analysis.result.dart-analysis-output",
27
+ "captures": {
28
+ "1": "analysis.severity.warning.dart-analysis-output",
29
+ "2": "field.separator.dart-analysis-output",
30
+ "3": "analysis.type.dart-analysis-output",
31
+ "4": "field.separator.dart-analysis-output",
32
+ "5": "file.name.dart-analysis-output",
33
+ "6": "field.separator.dart-analysis-output",
34
+ "7": "row.dart-analysis-output",
35
+ "8": "field.separator.dart-analysis-output",
36
+ "9": "column.dart-analysis-output",
37
+ "10": "field.separator.dart-analysis-output",
38
+ "11": "message.dart-analysis-output"
77
39
  }
78
40
  },
79
- "match": "^(WARNING)(\\|)(\\w+)(\\|)(.+)(\\|)(\\d+)(\\|)(\\d+)(\\|)(.+)$",
80
- "name": "analysis.result.dart-analysis-output"
81
- },
82
- {
83
- "captures": {
84
- "1": {
85
- "name": "analysis.severity.info.dart-analysis-output"
86
- },
87
- "10": {
88
- "name": "field.separator.dart-analysis-output"
89
- },
90
- "11": {
91
- "name": "message.dart-analysis-output"
92
- },
93
- "2": {
94
- "name": "field.separator.dart-analysis-output"
95
- },
96
- "3": {
97
- "name": "analysis.type.dart-analysis-output"
98
- },
99
- "4": {
100
- "name": "field.separator.dart-analysis-output"
101
- },
102
- "5": {
103
- "name": "file.name.dart-analysis-output"
104
- },
105
- "6": {
106
- "name": "field.separator.dart-analysis-output"
107
- },
108
- "7": {
109
- "name": "row.dart-analysis-output"
110
- },
111
- "8": {
112
- "name": "field.separator.dart-analysis-output"
113
- },
114
- "9": {
115
- "name": "column.dart-analysis-output"
41
+ {
42
+ "match": "^(INFO)(\\|)(\\w+)(\\|)(.+)(\\|)(\\d+)(\\|)(\\d+)(\\|)(.+)$",
43
+ "scope": "analysis.result.dart-analysis-output",
44
+ "captures": {
45
+ "1": "analysis.severity.info.dart-analysis-output",
46
+ "2": "field.separator.dart-analysis-output",
47
+ "3": "analysis.type.dart-analysis-output",
48
+ "4": "field.separator.dart-analysis-output",
49
+ "5": "file.name.dart-analysis-output",
50
+ "6": "field.separator.dart-analysis-output",
51
+ "7": "row.dart-analysis-output",
52
+ "8": "field.separator.dart-analysis-output",
53
+ "9": "column.dart-analysis-output",
54
+ "10": "field.separator.dart-analysis-output",
55
+ "11": "message.dart-analysis-output"
116
56
  }
117
57
  },
118
- "match": "^(INFO)(\\|)(\\w+)(\\|)(.+)(\\|)(\\d+)(\\|)(\\d+)(\\|)(.+)$",
119
- "name": "analysis.result.dart-analysis-output"
120
- },
121
- {
122
- "captures": {
123
- "1": {
124
- "name": "analysis.severity.unknown.dart-analysis-output"
125
- },
126
- "10": {
127
- "name": "field.separator.dart-analysis-output"
128
- },
129
- "11": {
130
- "name": "message.dart-analysis-output"
131
- },
132
- "2": {
133
- "name": "field.separator.dart-analysis-output"
134
- },
135
- "3": {
136
- "name": "analysis.type.dart-analysis-output"
137
- },
138
- "4": {
139
- "name": "field.separator.dart-analysis-output"
140
- },
141
- "5": {
142
- "name": "file.name.dart-analysis-output"
143
- },
144
- "6": {
145
- "name": "field.separator.dart-analysis-output"
146
- },
147
- "7": {
148
- "name": "row.dart-analysis-output"
149
- },
150
- "8": {
151
- "name": "field.separator.dart-analysis-output"
152
- },
153
- "9": {
154
- "name": "column.dart-analysis-output"
58
+ {
59
+ "match": "^(\\w+)(\\|)(\\w+)(\\|)(.+)(\\|)(\\d+)(\\|)(\\d+)(\\|)(.+)$",
60
+ "scope": "analysis.result.dart-analysis-output",
61
+ "captures": {
62
+ "1": "analysis.severity.unknown.dart-analysis-output",
63
+ "2": "field.separator.dart-analysis-output",
64
+ "3": "analysis.type.dart-analysis-output",
65
+ "4": "field.separator.dart-analysis-output",
66
+ "5": "file.name.dart-analysis-output",
67
+ "6": "field.separator.dart-analysis-output",
68
+ "7": "row.dart-analysis-output",
69
+ "8": "field.separator.dart-analysis-output",
70
+ "9": "column.dart-analysis-output",
71
+ "10": "field.separator.dart-analysis-output",
72
+ "11": "message.dart-analysis-output"
155
73
  }
156
- },
157
- "match": "^(\\w+)(\\|)(\\w+)(\\|)(.+)(\\|)(\\d+)(\\|)(\\d+)(\\|)(.+)$",
158
- "name": "analysis.result.dart-analysis-output"
159
- }
160
- ],
161
- "scopeName": "text.dart-analysis-output"
74
+ }
75
+ ]
76
+ }
162
77
  }