code-languages 1.31.2 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +49 -39
  2. package/dist/api.cjs +522 -97
  3. package/dist/api.d.cts +1 -1
  4. package/dist/api.d.ts +1 -1
  5. package/dist/api.js +522 -97
  6. package/dist/detect-slugs.cjs +50 -39
  7. package/dist/detect-slugs.d.cts +1 -1
  8. package/dist/detect-slugs.d.ts +1 -1
  9. package/dist/detect-slugs.js +50 -39
  10. package/dist/detect.cjs +342 -34
  11. package/dist/detect.js +342 -34
  12. package/dist/index.cjs +589 -142
  13. package/dist/index.d.cts +458 -172
  14. package/dist/index.d.ts +458 -172
  15. package/dist/index.js +545 -98
  16. package/dist/{language-registry-BaICPFq_.d.cts → language-registry-BWMgasX6.d.cts} +109 -79
  17. package/dist/{language-registry-BaICPFq_.d.ts → language-registry-BWMgasX6.d.ts} +109 -79
  18. package/dist/languages/algol.cjs +32 -0
  19. package/dist/languages/algol.d.cts +29 -0
  20. package/dist/languages/algol.d.ts +29 -0
  21. package/dist/languages/algol.js +30 -0
  22. package/dist/languages/ante.cjs +33 -0
  23. package/dist/languages/ante.d.cts +30 -0
  24. package/dist/languages/ante.d.ts +30 -0
  25. package/dist/languages/ante.js +31 -0
  26. package/dist/languages/austral.cjs +32 -0
  27. package/dist/languages/austral.d.cts +29 -0
  28. package/dist/languages/austral.d.ts +29 -0
  29. package/dist/languages/austral.js +30 -0
  30. package/dist/languages/bcpl.cjs +32 -0
  31. package/dist/languages/bcpl.d.cts +29 -0
  32. package/dist/languages/bcpl.d.ts +29 -0
  33. package/dist/languages/bcpl.js +30 -0
  34. package/dist/languages/bosque.cjs +32 -0
  35. package/dist/languages/bosque.d.cts +29 -0
  36. package/dist/languages/bosque.d.ts +29 -0
  37. package/dist/languages/bosque.js +30 -0
  38. package/dist/languages/bqn.cjs +32 -0
  39. package/dist/languages/bqn.d.cts +29 -0
  40. package/dist/languages/bqn.d.ts +29 -0
  41. package/dist/languages/bqn.js +30 -0
  42. package/dist/languages/curry.cjs +33 -0
  43. package/dist/languages/curry.d.cts +30 -0
  44. package/dist/languages/curry.d.ts +30 -0
  45. package/dist/languages/curry.js +31 -0
  46. package/dist/languages/factor.cjs +33 -0
  47. package/dist/languages/factor.d.cts +30 -0
  48. package/dist/languages/factor.d.ts +30 -0
  49. package/dist/languages/factor.js +31 -0
  50. package/dist/languages/io.cjs +32 -0
  51. package/dist/languages/io.d.cts +29 -0
  52. package/dist/languages/io.d.ts +29 -0
  53. package/dist/languages/io.js +30 -0
  54. package/dist/languages/koka.cjs +33 -0
  55. package/dist/languages/koka.d.cts +30 -0
  56. package/dist/languages/koka.d.ts +30 -0
  57. package/dist/languages/koka.js +31 -0
  58. package/package.json +756 -646
@@ -11,6 +11,12 @@ declare const languageIndex: readonly [{
11
11
  }, {
12
12
  readonly slug: "agda";
13
13
  readonly extensions: readonly [".agda", ".lagda", ".lagda.md", ".lagda.rst", ".lagda.tex"];
14
+ }, {
15
+ readonly slug: "algol";
16
+ readonly extensions: readonly [".alg", ".algol"];
17
+ }, {
18
+ readonly slug: "ante";
19
+ readonly extensions: readonly [".ante"];
14
20
  }, {
15
21
  readonly slug: "antlr";
16
22
  readonly extensions: readonly [".g4"];
@@ -32,18 +38,21 @@ declare const languageIndex: readonly [{
32
38
  }, {
33
39
  readonly slug: "asp";
34
40
  readonly extensions: readonly [".asp", ".aspx", ".ascx", ".ashx", ".asmx", ".master"];
35
- }, {
36
- readonly slug: "astro";
37
- readonly extensions: readonly [".astro"];
38
41
  }, {
39
42
  readonly slug: "assembly";
40
43
  readonly extensions: readonly [".asm", ".s", ".S", ".inc"];
41
44
  }, {
42
- readonly slug: "awk";
43
- readonly extensions: readonly [".awk"];
45
+ readonly slug: "astro";
46
+ readonly extensions: readonly [".astro"];
47
+ }, {
48
+ readonly slug: "austral";
49
+ readonly extensions: readonly [".aum", ".aui"];
44
50
  }, {
45
51
  readonly slug: "autohotkey";
46
52
  readonly extensions: readonly [".ahk", ".ah2"];
53
+ }, {
54
+ readonly slug: "awk";
55
+ readonly extensions: readonly [".awk"];
47
56
  }, {
48
57
  readonly slug: "ballerina";
49
58
  readonly extensions: readonly [".bal"];
@@ -56,12 +65,21 @@ declare const languageIndex: readonly [{
56
65
  }, {
57
66
  readonly slug: "bazel";
58
67
  readonly extensions: readonly ["BUILD.bazel", "WORKSPACE", "WORKSPACE.bazel", "MODULE.bazel"];
68
+ }, {
69
+ readonly slug: "bcpl";
70
+ readonly extensions: readonly [".bcpl"];
59
71
  }, {
60
72
  readonly slug: "bicep";
61
73
  readonly extensions: readonly [".bicep", ".bicepparam"];
62
74
  }, {
63
75
  readonly slug: "blade";
64
76
  readonly extensions: readonly [".blade.php"];
77
+ }, {
78
+ readonly slug: "bosque";
79
+ readonly extensions: readonly [".bsq"];
80
+ }, {
81
+ readonly slug: "bqn";
82
+ readonly extensions: readonly [".bqn"];
65
83
  }, {
66
84
  readonly slug: "c";
67
85
  readonly extensions: readonly [".c", ".h"];
@@ -77,21 +95,21 @@ declare const languageIndex: readonly [{
77
95
  }, {
78
96
  readonly slug: "circom";
79
97
  readonly extensions: readonly [".circom"];
98
+ }, {
99
+ readonly slug: "clojure";
100
+ readonly extensions: readonly [".clj", ".cljs", ".cljc", ".edn", ".bb"];
80
101
  }, {
81
102
  readonly slug: "cmake";
82
103
  readonly extensions: readonly ["CMakeLists.txt", ".cmake"];
83
104
  }, {
84
- readonly slug: "clojure";
85
- readonly extensions: readonly [".clj", ".cljs", ".cljc", ".edn", ".bb"];
105
+ readonly slug: "cobol";
106
+ readonly extensions: readonly [".cob", ".cbl", ".cobol", ".cpy"];
86
107
  }, {
87
108
  readonly slug: "coffeescript";
88
109
  readonly extensions: readonly [".coffee", ".litcoffee", ".cson"];
89
110
  }, {
90
111
  readonly slug: "coldfusion";
91
112
  readonly extensions: readonly [".cfm", ".cfml", ".cfc"];
92
- }, {
93
- readonly slug: "cobol";
94
- readonly extensions: readonly [".cob", ".cbl", ".cobol", ".cpy"];
95
113
  }, {
96
114
  readonly slug: "coq";
97
115
  readonly extensions: readonly [".v"];
@@ -99,23 +117,26 @@ declare const languageIndex: readonly [{
99
117
  readonly slug: "cpp";
100
118
  readonly extensions: readonly [".cpp", ".cc", ".cxx", ".h", ".hpp", ".hh", ".hxx"];
101
119
  }, {
102
- readonly slug: "cypher";
103
- readonly extensions: readonly [".cypher", ".cyp"];
120
+ readonly slug: "crystal";
121
+ readonly extensions: readonly [".cr"];
104
122
  }, {
105
123
  readonly slug: "csharp";
106
124
  readonly extensions: readonly [".cs", ".csx"];
107
- }, {
108
- readonly slug: "crystal";
109
- readonly extensions: readonly [".cr"];
110
125
  }, {
111
126
  readonly slug: "css";
112
127
  readonly extensions: readonly [".css"];
128
+ }, {
129
+ readonly slug: "cuda";
130
+ readonly extensions: readonly [".cu", ".cuh"];
113
131
  }, {
114
132
  readonly slug: "cue";
115
133
  readonly extensions: readonly [".cue"];
116
134
  }, {
117
- readonly slug: "cuda";
118
- readonly extensions: readonly [".cu", ".cuh"];
135
+ readonly slug: "curry";
136
+ readonly extensions: readonly [".curry", ".lcurry"];
137
+ }, {
138
+ readonly slug: "cypher";
139
+ readonly extensions: readonly [".cypher", ".cyp"];
119
140
  }, {
120
141
  readonly slug: "cython";
121
142
  readonly extensions: readonly [".pyx", ".pxd", ".pxi"];
@@ -138,14 +159,14 @@ declare const languageIndex: readonly [{
138
159
  readonly slug: "dockerfile";
139
160
  readonly extensions: readonly ["Dockerfile", ".dockerfile"];
140
161
  }, {
141
- readonly slug: "ejs";
142
- readonly extensions: readonly [".ejs"];
162
+ readonly slug: "earthly";
163
+ readonly extensions: readonly ["Earthfile"];
143
164
  }, {
144
165
  readonly slug: "eiffel";
145
166
  readonly extensions: readonly [".e"];
146
167
  }, {
147
- readonly slug: "earthly";
148
- readonly extensions: readonly ["Earthfile"];
168
+ readonly slug: "ejs";
169
+ readonly extensions: readonly [".ejs"];
149
170
  }, {
150
171
  readonly slug: "elixir";
151
172
  readonly extensions: readonly [".ex", ".exs", ".eex", ".leex", ".heex"];
@@ -159,23 +180,26 @@ declare const languageIndex: readonly [{
159
180
  readonly slug: "erlang";
160
181
  readonly extensions: readonly [".erl", ".hrl", ".app.src", ".escript", ".xrl", ".yrl", "rebar.config"];
161
182
  }, {
162
- readonly slug: "fish";
163
- readonly extensions: readonly [".fish"];
183
+ readonly slug: "factor";
184
+ readonly extensions: readonly [".factor"];
164
185
  }, {
165
186
  readonly slug: "fennel";
166
187
  readonly extensions: readonly [".fnl"];
188
+ }, {
189
+ readonly slug: "fish";
190
+ readonly extensions: readonly [".fish"];
167
191
  }, {
168
192
  readonly slug: "flux";
169
193
  readonly extensions: readonly [".flux"];
170
194
  }, {
171
- readonly slug: "freemarker";
172
- readonly extensions: readonly [".ftl", ".ftlh", ".ftlx"];
195
+ readonly slug: "forth";
196
+ readonly extensions: readonly [".fs", ".fth", ".forth", ".4th"];
173
197
  }, {
174
198
  readonly slug: "fortran";
175
199
  readonly extensions: readonly [".f", ".for", ".ftn", ".f90", ".f95", ".f03", ".f08", ".f18", ".f23"];
176
200
  }, {
177
- readonly slug: "forth";
178
- readonly extensions: readonly [".fs", ".fth", ".forth", ".4th"];
201
+ readonly slug: "freemarker";
202
+ readonly extensions: readonly [".ftl", ".ftlh", ".ftlx"];
179
203
  }, {
180
204
  readonly slug: "fsharp";
181
205
  readonly extensions: readonly [".fs", ".fsi", ".fsx", ".fsscript"];
@@ -191,39 +215,36 @@ declare const languageIndex: readonly [{
191
215
  }, {
192
216
  readonly slug: "gleam";
193
217
  readonly extensions: readonly [".gleam"];
218
+ }, {
219
+ readonly slug: "glsl";
220
+ readonly extensions: readonly [".glsl", ".vert", ".frag", ".geom", ".tesc", ".tese", ".comp", ".vs", ".fs"];
194
221
  }, {
195
222
  readonly slug: "go";
196
223
  readonly extensions: readonly [".go"];
197
- }, {
198
- readonly slug: "grain";
199
- readonly extensions: readonly [".gr"];
200
224
  }, {
201
225
  readonly slug: "gradle";
202
226
  readonly extensions: readonly [".gradle", ".gradle.kts"];
203
227
  }, {
204
- readonly slug: "glsl";
205
- readonly extensions: readonly [".glsl", ".vert", ".frag", ".geom", ".tesc", ".tese", ".comp", ".vs", ".fs"];
228
+ readonly slug: "grain";
229
+ readonly extensions: readonly [".gr"];
206
230
  }, {
207
231
  readonly slug: "graphql";
208
232
  readonly extensions: readonly [".graphql", ".gql", ".graphqls"];
209
233
  }, {
210
234
  readonly slug: "groovy";
211
235
  readonly extensions: readonly [".groovy", ".gvy", ".gy", ".gsh"];
212
- }, {
213
- readonly slug: "handlebars";
214
- readonly extensions: readonly [".hbs", ".handlebars"];
215
236
  }, {
216
237
  readonly slug: "hack";
217
238
  readonly extensions: readonly [".hack", ".hh", ".hhi"];
218
239
  }, {
219
240
  readonly slug: "haml";
220
241
  readonly extensions: readonly [".haml"];
242
+ }, {
243
+ readonly slug: "handlebars";
244
+ readonly extensions: readonly [".hbs", ".handlebars"];
221
245
  }, {
222
246
  readonly slug: "hare";
223
247
  readonly extensions: readonly [".ha"];
224
- }, {
225
- readonly slug: "hocon";
226
- readonly extensions: readonly [".hocon"];
227
248
  }, {
228
249
  readonly slug: "haskell";
229
250
  readonly extensions: readonly [".hs", ".lhs", ".hsc", ".hs-boot", ".hsig", ".cabal"];
@@ -236,6 +257,9 @@ declare const languageIndex: readonly [{
236
257
  }, {
237
258
  readonly slug: "hlsl";
238
259
  readonly extensions: readonly [".hlsl", ".fx", ".fxh", ".hlsli"];
260
+ }, {
261
+ readonly slug: "hocon";
262
+ readonly extensions: readonly [".hocon"];
239
263
  }, {
240
264
  readonly slug: "html";
241
265
  readonly extensions: readonly [".html", ".htm"];
@@ -248,18 +272,21 @@ declare const languageIndex: readonly [{
248
272
  }, {
249
273
  readonly slug: "ini";
250
274
  readonly extensions: readonly [".ini"];
275
+ }, {
276
+ readonly slug: "io";
277
+ readonly extensions: readonly [".io"];
251
278
  }, {
252
279
  readonly slug: "isabelle";
253
280
  readonly extensions: readonly [".thy"];
281
+ }, {
282
+ readonly slug: "janet";
283
+ readonly extensions: readonly [".janet", ".jdn"];
254
284
  }, {
255
285
  readonly slug: "java";
256
286
  readonly extensions: readonly [".java"];
257
287
  }, {
258
288
  readonly slug: "javascript";
259
289
  readonly extensions: readonly [".js", ".mjs", ".cjs", ".jsx"];
260
- }, {
261
- readonly slug: "janet";
262
- readonly extensions: readonly [".janet", ".jdn"];
263
290
  }, {
264
291
  readonly slug: "jinja";
265
292
  readonly extensions: readonly [".jinja", ".jinja2", ".j2"];
@@ -275,12 +302,12 @@ declare const languageIndex: readonly [{
275
302
  }, {
276
303
  readonly slug: "jsonnet";
277
304
  readonly extensions: readonly [".jsonnet", ".libsonnet"];
278
- }, {
279
- readonly slug: "jupyter-notebook";
280
- readonly extensions: readonly [".ipynb"];
281
305
  }, {
282
306
  readonly slug: "julia";
283
307
  readonly extensions: readonly [".jl"];
308
+ }, {
309
+ readonly slug: "jupyter-notebook";
310
+ readonly extensions: readonly [".ipynb"];
284
311
  }, {
285
312
  readonly slug: "just";
286
313
  readonly extensions: readonly ["justfile", "Justfile", ".just"];
@@ -290,6 +317,9 @@ declare const languageIndex: readonly [{
290
317
  }, {
291
318
  readonly slug: "kdl";
292
319
  readonly extensions: readonly [".kdl"];
320
+ }, {
321
+ readonly slug: "koka";
322
+ readonly extensions: readonly [".kk"];
293
323
  }, {
294
324
  readonly slug: "kotlin";
295
325
  readonly extensions: readonly [".kt", ".kts"];
@@ -314,21 +344,21 @@ declare const languageIndex: readonly [{
314
344
  }, {
315
345
  readonly slug: "luau";
316
346
  readonly extensions: readonly [".luau"];
347
+ }, {
348
+ readonly slug: "makefile";
349
+ readonly extensions: readonly ["Makefile", "makefile", "GNUmakefile", ".mk", ".mak"];
317
350
  }, {
318
351
  readonly slug: "mako";
319
352
  readonly extensions: readonly [".mako", ".mao"];
320
353
  }, {
321
- readonly slug: "makefile";
322
- readonly extensions: readonly ["Makefile", "makefile", "GNUmakefile", ".mk", ".mak"];
354
+ readonly slug: "markdown";
355
+ readonly extensions: readonly [".md", ".markdown", ".mdown", ".mkd"];
323
356
  }, {
324
357
  readonly slug: "mathematica";
325
358
  readonly extensions: readonly [".wl", ".wls", ".nb"];
326
359
  }, {
327
360
  readonly slug: "matlab";
328
361
  readonly extensions: readonly [".m", ".mlx"];
329
- }, {
330
- readonly slug: "markdown";
331
- readonly extensions: readonly [".md", ".markdown", ".mdown", ".mkd"];
332
362
  }, {
333
363
  readonly slug: "mdx";
334
364
  readonly extensions: readonly [".mdx"];
@@ -341,12 +371,6 @@ declare const languageIndex: readonly [{
341
371
  }, {
342
372
  readonly slug: "metal";
343
373
  readonly extensions: readonly [".metal"];
344
- }, {
345
- readonly slug: "mustache";
346
- readonly extensions: readonly [".mustache", ".mst"];
347
- }, {
348
- readonly slug: "move";
349
- readonly extensions: readonly [".move"];
350
374
  }, {
351
375
  readonly slug: "mojo";
352
376
  readonly extensions: readonly [".mojo"];
@@ -354,20 +378,17 @@ declare const languageIndex: readonly [{
354
378
  readonly slug: "moonbit";
355
379
  readonly extensions: readonly [".mbt"];
356
380
  }, {
357
- readonly slug: "svn";
358
- readonly extensions: readonly [".svn", "svnserve.conf"];
381
+ readonly slug: "move";
382
+ readonly extensions: readonly [".move"];
383
+ }, {
384
+ readonly slug: "mustache";
385
+ readonly extensions: readonly [".mustache", ".mst"];
359
386
  }, {
360
387
  readonly slug: "nginx";
361
388
  readonly extensions: readonly ["nginx.conf", ".nginx", ".conf"];
362
389
  }, {
363
390
  readonly slug: "nickel";
364
391
  readonly extensions: readonly [".ncl"];
365
- }, {
366
- readonly slug: "nunjucks";
367
- readonly extensions: readonly [".njk", ".nunjucks"];
368
- }, {
369
- readonly slug: "nushell";
370
- readonly extensions: readonly [".nu"];
371
392
  }, {
372
393
  readonly slug: "nim";
373
394
  readonly extensions: readonly [".nim", ".nims", ".nimble"];
@@ -375,26 +396,29 @@ declare const languageIndex: readonly [{
375
396
  readonly slug: "nix";
376
397
  readonly extensions: readonly [".nix"];
377
398
  }, {
378
- readonly slug: "ocaml";
379
- readonly extensions: readonly [".ml", ".mli", ".mll", ".mly", ".mlt", ".eliom", ".eliomi"];
399
+ readonly slug: "nunjucks";
400
+ readonly extensions: readonly [".njk", ".nunjucks"];
401
+ }, {
402
+ readonly slug: "nushell";
403
+ readonly extensions: readonly [".nu"];
380
404
  }, {
381
405
  readonly slug: "objective-c";
382
406
  readonly extensions: readonly [".m", ".mm"];
407
+ }, {
408
+ readonly slug: "ocaml";
409
+ readonly extensions: readonly [".ml", ".mli", ".mll", ".mly", ".mlt", ".eliom", ".eliomi"];
383
410
  }, {
384
411
  readonly slug: "odin";
385
412
  readonly extensions: readonly [".odin"];
386
- }, {
387
- readonly slug: "opencl";
388
- readonly extensions: readonly [".cl", ".clh"];
389
413
  }, {
390
414
  readonly slug: "openapi";
391
415
  readonly extensions: readonly [".openapi.json", ".openapi.yaml", ".openapi.yml"];
416
+ }, {
417
+ readonly slug: "opencl";
418
+ readonly extensions: readonly [".cl", ".clh"];
392
419
  }, {
393
420
  readonly slug: "pascal";
394
421
  readonly extensions: readonly [".pas", ".pp", ".inc", ".lpr", ".dpr", ".dfm"];
395
- }, {
396
- readonly slug: "pkl";
397
- readonly extensions: readonly [".pkl"];
398
422
  }, {
399
423
  readonly slug: "perl";
400
424
  readonly extensions: readonly [".pl", ".pm", ".pod", ".t", ".psgi"];
@@ -404,6 +428,9 @@ declare const languageIndex: readonly [{
404
428
  }, {
405
429
  readonly slug: "pine-script";
406
430
  readonly extensions: readonly [".pine"];
431
+ }, {
432
+ readonly slug: "pkl";
433
+ readonly extensions: readonly [".pkl"];
407
434
  }, {
408
435
  readonly slug: "plantuml";
409
436
  readonly extensions: readonly [".puml", ".plantuml", ".iuml"];
@@ -446,12 +473,12 @@ declare const languageIndex: readonly [{
446
473
  }, {
447
474
  readonly slug: "r";
448
475
  readonly extensions: readonly [".r", ".R", ".rmd", ".Rmd", ".qmd", ".Rprofile"];
449
- }, {
450
- readonly slug: "raku";
451
- readonly extensions: readonly [".raku", ".rakumod", ".rakudoc", ".rakutest", ".p6", ".pm6"];
452
476
  }, {
453
477
  readonly slug: "racket";
454
478
  readonly extensions: readonly [".rkt", ".rktd", ".rktl", ".scrbl"];
479
+ }, {
480
+ readonly slug: "raku";
481
+ readonly extensions: readonly [".raku", ".rakumod", ".rakudoc", ".rakutest", ".p6", ".pm6"];
455
482
  }, {
456
483
  readonly slug: "razor";
457
484
  readonly extensions: readonly [".cshtml", ".razor"];
@@ -479,12 +506,12 @@ declare const languageIndex: readonly [{
479
506
  }, {
480
507
  readonly slug: "scala";
481
508
  readonly extensions: readonly [".scala", ".sc"];
482
- }, {
483
- readonly slug: "scss";
484
- readonly extensions: readonly [".scss", ".sass"];
485
509
  }, {
486
510
  readonly slug: "scheme";
487
511
  readonly extensions: readonly [".scm", ".ss", ".sld", ".sls"];
512
+ }, {
513
+ readonly slug: "scss";
514
+ readonly extensions: readonly [".scss", ".sass"];
488
515
  }, {
489
516
  readonly slug: "smalltalk";
490
517
  readonly extensions: readonly [".st"];
@@ -512,12 +539,15 @@ declare const languageIndex: readonly [{
512
539
  }, {
513
540
  readonly slug: "stylus";
514
541
  readonly extensions: readonly [".styl"];
542
+ }, {
543
+ readonly slug: "svelte";
544
+ readonly extensions: readonly [".svelte"];
515
545
  }, {
516
546
  readonly slug: "svg";
517
547
  readonly extensions: readonly [".svg", ".svgz"];
518
548
  }, {
519
- readonly slug: "svelte";
520
- readonly extensions: readonly [".svelte"];
549
+ readonly slug: "svn";
550
+ readonly extensions: readonly [".svn", "svnserve.conf"];
521
551
  }, {
522
552
  readonly slug: "swift";
523
553
  readonly extensions: readonly [".swift"];