code-languages 1.7.0 → 1.8.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 (84) hide show
  1. package/README.md +77 -1
  2. package/dist/api.cjs +2443 -0
  3. package/dist/api.cjs.map +1 -0
  4. package/dist/api.d.cts +1517 -0
  5. package/dist/api.d.ts +1517 -0
  6. package/dist/api.js +2441 -0
  7. package/dist/api.js.map +1 -0
  8. package/dist/detect.cjs +342 -12
  9. package/dist/detect.cjs.map +1 -1
  10. package/dist/detect.js +342 -12
  11. package/dist/detect.js.map +1 -1
  12. package/dist/index.cjs +2325 -1202
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +293 -0
  15. package/dist/index.d.ts +293 -0
  16. package/dist/index.js +2281 -1115
  17. package/dist/index.js.map +1 -1
  18. package/dist/languages/asp.cjs +34 -0
  19. package/dist/languages/asp.cjs.map +1 -0
  20. package/dist/languages/asp.d.cts +29 -0
  21. package/dist/languages/asp.d.ts +29 -0
  22. package/dist/languages/asp.js +32 -0
  23. package/dist/languages/asp.js.map +1 -0
  24. package/dist/languages/cuda.cjs +34 -0
  25. package/dist/languages/cuda.cjs.map +1 -0
  26. package/dist/languages/cuda.d.cts +29 -0
  27. package/dist/languages/cuda.d.ts +29 -0
  28. package/dist/languages/cuda.js +32 -0
  29. package/dist/languages/cuda.js.map +1 -0
  30. package/dist/languages/fsharp.cjs +34 -0
  31. package/dist/languages/fsharp.cjs.map +1 -0
  32. package/dist/languages/fsharp.d.cts +29 -0
  33. package/dist/languages/fsharp.d.ts +29 -0
  34. package/dist/languages/fsharp.js +32 -0
  35. package/dist/languages/fsharp.js.map +1 -0
  36. package/dist/languages/julia.cjs +34 -0
  37. package/dist/languages/julia.cjs.map +1 -0
  38. package/dist/languages/julia.d.cts +29 -0
  39. package/dist/languages/julia.d.ts +29 -0
  40. package/dist/languages/julia.js +32 -0
  41. package/dist/languages/julia.js.map +1 -0
  42. package/dist/languages/matlab.cjs +34 -0
  43. package/dist/languages/matlab.cjs.map +1 -0
  44. package/dist/languages/matlab.d.cts +29 -0
  45. package/dist/languages/matlab.d.ts +29 -0
  46. package/dist/languages/matlab.js +32 -0
  47. package/dist/languages/matlab.js.map +1 -0
  48. package/dist/languages/pascal.cjs +34 -0
  49. package/dist/languages/pascal.cjs.map +1 -0
  50. package/dist/languages/pascal.d.cts +29 -0
  51. package/dist/languages/pascal.d.ts +29 -0
  52. package/dist/languages/pascal.js +32 -0
  53. package/dist/languages/pascal.js.map +1 -0
  54. package/dist/languages/pug.cjs +34 -0
  55. package/dist/languages/pug.cjs.map +1 -0
  56. package/dist/languages/pug.d.cts +29 -0
  57. package/dist/languages/pug.d.ts +29 -0
  58. package/dist/languages/pug.js +32 -0
  59. package/dist/languages/pug.js.map +1 -0
  60. package/dist/languages/r.cjs +34 -0
  61. package/dist/languages/r.cjs.map +1 -0
  62. package/dist/languages/r.d.cts +29 -0
  63. package/dist/languages/r.d.ts +29 -0
  64. package/dist/languages/r.js +32 -0
  65. package/dist/languages/r.js.map +1 -0
  66. package/dist/languages/scala.cjs +34 -0
  67. package/dist/languages/scala.cjs.map +1 -0
  68. package/dist/languages/scala.d.cts +29 -0
  69. package/dist/languages/scala.d.ts +29 -0
  70. package/dist/languages/scala.js +32 -0
  71. package/dist/languages/scala.js.map +1 -0
  72. package/dist/languages/toml.cjs +29 -0
  73. package/dist/languages/toml.cjs.map +1 -0
  74. package/dist/languages/toml.d.cts +24 -0
  75. package/dist/languages/toml.d.ts +24 -0
  76. package/dist/languages/toml.js +27 -0
  77. package/dist/languages/toml.js.map +1 -0
  78. package/dist/languages/zig.cjs +34 -0
  79. package/dist/languages/zig.cjs.map +1 -0
  80. package/dist/languages/zig.d.cts +29 -0
  81. package/dist/languages/zig.d.ts +29 -0
  82. package/dist/languages/zig.js +32 -0
  83. package/dist/languages/zig.js.map +1 -0
  84. package/package.json +61 -1
package/dist/detect.js CHANGED
@@ -26,6 +26,35 @@ var abap = {
26
26
  }
27
27
  };
28
28
 
29
+ // src/languages/asp.ts
30
+ var asp = {
31
+ slug: "asp",
32
+ publishedDate: "1996-12-01",
33
+ extensions: [".asp", ".aspx", ".ascx", ".ashx", ".asmx", ".master"],
34
+ author: "Microsoft",
35
+ website: "https://learn.microsoft.com/en-us/aspnet/web-forms/",
36
+ paradigms: ["server-side", "templating", "object-oriented", "event-driven"],
37
+ tooling: {
38
+ runtimes: ["IIS", ".NET Framework"],
39
+ packageManagers: ["NuGet"],
40
+ ecosystems: ["Windows", ".NET", "Web"]
41
+ },
42
+ version: "4.8.1",
43
+ logo: "https://cdn.simpleicons.org/dotnet/512BD4",
44
+ i18n: {
45
+ en: {
46
+ name: "ASP/ASPX",
47
+ description: "Microsoft server-side web templates and pages for Classic ASP and ASP.NET Web Forms.",
48
+ longDescription: "ASP and ASPX files represent Microsoft server-side web page technologies. Classic ASP uses `.asp` files with script blocks, while ASP.NET Web Forms uses `.aspx`, user controls, handlers, services, and master pages on top of the .NET Framework.\n\nThey are commonly found in legacy and long-lived Windows web applications hosted on IIS, often alongside C#, Visual Basic, HTML, CSS, JavaScript, and NuGet-based .NET Framework dependencies."
49
+ },
50
+ es: {
51
+ name: "ASP/ASPX",
52
+ description: "Plantillas y paginas web server-side de Microsoft para Classic ASP y ASP.NET Web Forms.",
53
+ longDescription: "Los archivos ASP y ASPX representan tecnologias de paginas web server-side de Microsoft. Classic ASP usa archivos `.asp` con bloques de script, mientras ASP.NET Web Forms usa `.aspx`, controles de usuario, handlers, servicios y paginas maestras sobre .NET Framework.\n\nAparecen comunmente en aplicaciones web Windows legacy o de larga vida alojadas en IIS, a menudo junto con C#, Visual Basic, HTML, CSS, JavaScript y dependencias .NET Framework basadas en NuGet."
54
+ }
55
+ }
56
+ };
57
+
29
58
  // src/languages/assembly.ts
30
59
  var assembly = {
31
60
  slug: "assembly",
@@ -309,6 +338,35 @@ var css = {
309
338
  }
310
339
  };
311
340
 
341
+ // src/languages/cuda.ts
342
+ var cuda = {
343
+ slug: "cuda",
344
+ publishedDate: "2007-02-15",
345
+ extensions: [".cu", ".cuh"],
346
+ author: "NVIDIA",
347
+ website: "https://developer.nvidia.com/cuda-toolkit",
348
+ paradigms: ["parallel", "data-parallel", "systems", "heterogeneous-computing"],
349
+ tooling: {
350
+ runtimes: ["CUDA Runtime", "CUDA Driver API"],
351
+ packageManagers: ["CUDA Toolkit", "conda"],
352
+ ecosystems: ["GPU Computing", "HPC", "Machine Learning", "Scientific Computing"]
353
+ },
354
+ version: "13.2.1",
355
+ logo: "https://cdn.simpleicons.org/nvidia/76B900",
356
+ i18n: {
357
+ en: {
358
+ name: "CUDA",
359
+ description: "NVIDIA's GPU programming platform and C/C++ extensions for parallel computing.",
360
+ longDescription: "CUDA is NVIDIA's parallel computing platform and programming model for GPU-accelerated applications. CUDA C/C++ source files use extensions for kernels, device functions, memory spaces, grids, blocks, and threads that execute on NVIDIA GPUs.\n\nIt is used in machine learning, scientific computing, simulations, image processing, rendering, high-performance computing, and applications that need to offload massively parallel workloads to GPU hardware."
361
+ },
362
+ es: {
363
+ name: "CUDA",
364
+ description: "La plataforma GPU de NVIDIA y extensiones C/C++ para computacion paralela.",
365
+ longDescription: "CUDA es la plataforma de computacion paralela y modelo de programacion de NVIDIA para aplicaciones aceleradas por GPU. Los archivos CUDA C/C++ usan extensiones para kernels, funciones de dispositivo, espacios de memoria, grids, blocks y threads que se ejecutan en GPUs NVIDIA.\n\nSe usa en machine learning, computacion cientifica, simulaciones, procesamiento de imagenes, rendering, computacion de alto rendimiento y aplicaciones que necesitan descargar cargas masivamente paralelas al hardware GPU."
366
+ }
367
+ }
368
+ };
369
+
312
370
  // src/languages/dart.ts
313
371
  var dart = {
314
372
  slug: "dart",
@@ -366,6 +424,35 @@ var dockerfile = {
366
424
  }
367
425
  };
368
426
 
427
+ // src/languages/fsharp.ts
428
+ var fsharp = {
429
+ slug: "fsharp",
430
+ publishedDate: "2005-05-01",
431
+ extensions: [".fs", ".fsi", ".fsx", ".fsscript"],
432
+ author: "Don Syme / Microsoft Research",
433
+ website: "https://dotnet.microsoft.com/en-us/languages/fsharp",
434
+ paradigms: ["functional", "object-oriented", "imperative", "scripting"],
435
+ tooling: {
436
+ runtimes: [".NET", "F# Interactive"],
437
+ packageManagers: ["NuGet"],
438
+ ecosystems: [".NET", "Data Science", "Web", "Cloud"]
439
+ },
440
+ version: "10",
441
+ logo: "https://cdn.simpleicons.org/fsharp/378BBA",
442
+ i18n: {
443
+ en: {
444
+ name: "F#",
445
+ description: "A succinct, functional-first .NET language for robust applications, scripts, and data workflows.",
446
+ longDescription: "F# is a functional-first programming language in the .NET ecosystem. It combines type inference, immutable data by default, pattern matching, discriminated unions, computation expressions, and interoperability with C# and other .NET languages.\n\nIt is used for backend services, data processing, scripting, domain modeling, financial systems, cloud applications, and teams that want concise code with strong static typing and access to the broader .NET platform."
447
+ },
448
+ es: {
449
+ name: "F#",
450
+ description: "Un lenguaje .NET conciso y funcional para aplicaciones robustas, scripts y flujos de datos.",
451
+ longDescription: "F# es un lenguaje de programacion funcional-first dentro del ecosistema .NET. Combina inferencia de tipos, datos inmutables por defecto, pattern matching, uniones discriminadas, computation expressions e interoperabilidad con C# y otros lenguajes .NET.\n\nSe usa en servicios backend, procesamiento de datos, scripting, modelado de dominios, sistemas financieros, aplicaciones cloud y equipos que quieren codigo conciso con tipado estatico fuerte y acceso a la plataforma .NET."
452
+ }
453
+ }
454
+ };
455
+
369
456
  // src/languages/go.ts
370
457
  var go = {
371
458
  slug: "go",
@@ -559,6 +646,35 @@ var json = {
559
646
  }
560
647
  };
561
648
 
649
+ // src/languages/julia.ts
650
+ var julia = {
651
+ slug: "julia",
652
+ publishedDate: "2012-02-14",
653
+ extensions: [".jl"],
654
+ author: "Jeff Bezanson, Stefan Karpinski, Viral B. Shah, Alan Edelman",
655
+ website: "https://julialang.org",
656
+ paradigms: ["multiple-dispatch", "functional", "imperative", "metaprogramming"],
657
+ tooling: {
658
+ runtimes: ["Julia"],
659
+ packageManagers: ["Pkg"],
660
+ ecosystems: ["Scientific Computing", "Data Science", "Machine Learning", "HPC"]
661
+ },
662
+ version: "1.12.6",
663
+ logo: "https://cdn.simpleicons.org/julia/9558B2",
664
+ i18n: {
665
+ en: {
666
+ name: "Julia",
667
+ description: "A high-performance language for technical computing, data science, and numerical work.",
668
+ longDescription: "Julia is a high-level, high-performance programming language designed for numerical and scientific computing. It combines dynamic interactivity with just-in-time compilation, multiple dispatch, metaprogramming, and a package ecosystem focused on technical work.\n\nIt is widely used for scientific computing, data analysis, machine learning, optimization, simulations, high-performance computing, and workflows where teams want expressive code that can run close to native speed."
669
+ },
670
+ es: {
671
+ name: "Julia",
672
+ description: "Un lenguaje de alto rendimiento para computacion tecnica, ciencia de datos y trabajo numerico.",
673
+ longDescription: "Julia es un lenguaje de programacion de alto nivel y alto rendimiento disenado para computacion numerica y cientifica. Combina interactividad dinamica con compilacion just-in-time, multiple dispatch, metaprogramacion y un ecosistema de paquetes enfocado en trabajo tecnico.\n\nSe usa ampliamente en computacion cientifica, analisis de datos, machine learning, optimizacion, simulaciones, computacion de alto rendimiento y flujos donde los equipos quieren codigo expresivo que pueda ejecutarse cerca de velocidad nativa."
674
+ }
675
+ }
676
+ };
677
+
562
678
  // src/languages/kotlin.ts
563
679
  var kotlin = {
564
680
  slug: "kotlin",
@@ -698,6 +814,35 @@ var markdown = {
698
814
  }
699
815
  };
700
816
 
817
+ // src/languages/matlab.ts
818
+ var matlab = {
819
+ slug: "matlab",
820
+ publishedDate: "1984-01-01",
821
+ extensions: [".m", ".mlx"],
822
+ author: "MathWorks",
823
+ website: "https://www.mathworks.com/products/matlab.html",
824
+ paradigms: ["array-oriented", "imperative", "object-oriented", "procedural"],
825
+ tooling: {
826
+ runtimes: ["MATLAB"],
827
+ packageManagers: ["MATLAB Add-On Explorer"],
828
+ ecosystems: ["Scientific Computing", "Numerical Computing", "Engineering", "Simulink"]
829
+ },
830
+ version: "R2026a",
831
+ logo: "https://commons.wikimedia.org/wiki/Special:FilePath/Matlab_Logo.png",
832
+ i18n: {
833
+ en: {
834
+ name: "MATLAB",
835
+ description: "A matrix-oriented language and environment for engineering, science, data, and simulation.",
836
+ longDescription: "MATLAB is a programming language and numerical computing environment from MathWorks. It is centered on matrix and array operations, interactive analysis, visualization, algorithm development, and workflows for engineers and scientists.\n\nIt is commonly used for signal processing, control systems, robotics, data analysis, optimization, simulation, education, and model-based design alongside Simulink and MathWorks toolboxes."
837
+ },
838
+ es: {
839
+ name: "MATLAB",
840
+ description: "Un lenguaje y entorno orientado a matrices para ingenieria, ciencia, datos y simulacion.",
841
+ longDescription: "MATLAB es un lenguaje de programacion y entorno de computacion numerica de MathWorks. Esta centrado en operaciones con matrices y arreglos, analisis interactivo, visualizacion, desarrollo de algoritmos y flujos de trabajo para ingenieros y cientificos.\n\nSe usa comunmente en procesamiento de senales, sistemas de control, robotica, analisis de datos, optimizacion, simulacion, educacion y diseno basado en modelos junto con Simulink y las toolboxes de MathWorks."
842
+ }
843
+ }
844
+ };
845
+
701
846
  // src/languages/nginx.ts
702
847
  var nginx = {
703
848
  slug: "nginx",
@@ -755,6 +900,35 @@ var objectiveC = {
755
900
  }
756
901
  };
757
902
 
903
+ // src/languages/pascal.ts
904
+ var pascal = {
905
+ slug: "pascal",
906
+ publishedDate: "1970-01-01",
907
+ extensions: [".pas", ".pp", ".inc", ".lpr", ".dpr", ".dfm"],
908
+ author: "Niklaus Wirth",
909
+ website: "https://www.freepascal.org",
910
+ paradigms: ["structured", "imperative", "procedural", "object-oriented"],
911
+ tooling: {
912
+ runtimes: ["Free Pascal", "Delphi Runtime"],
913
+ packageManagers: ["fppkg", "OPM"],
914
+ ecosystems: ["Desktop", "Education", "Embedded", "Cross-platform Native"]
915
+ },
916
+ version: "3.2.2",
917
+ logo: "https://cdn.simpleicons.org/lazarus/000000",
918
+ i18n: {
919
+ en: {
920
+ name: "Pascal",
921
+ description: "A structured programming language and Object Pascal family used for native applications.",
922
+ longDescription: "Pascal is a structured programming language created by Niklaus Wirth and later expanded through Object Pascal dialects such as Delphi and Free Pascal. It emphasizes readable syntax, clear program structure, strong typing, procedures, records, units, and native compilation.\n\nIt is used in education, desktop software, cross-platform native applications, embedded systems, legacy business tools, and Lazarus or Delphi projects that rely on Pascal and Object Pascal source files."
923
+ },
924
+ es: {
925
+ name: "Pascal",
926
+ description: "Un lenguaje estructurado y familia Object Pascal usado para aplicaciones nativas.",
927
+ longDescription: "Pascal es un lenguaje de programacion estructurada creado por Niklaus Wirth y luego expandido mediante dialectos Object Pascal como Delphi y Free Pascal. Enfatiza sintaxis legible, estructura clara, tipado fuerte, procedimientos, records, units y compilacion nativa.\n\nSe usa en educacion, software de escritorio, aplicaciones nativas multiplataforma, sistemas embebidos, herramientas legacy de negocio y proyectos Lazarus o Delphi basados en archivos fuente Pascal y Object Pascal."
928
+ }
929
+ }
930
+ };
931
+
758
932
  // src/languages/php.ts
759
933
  var php = {
760
934
  slug: "php",
@@ -813,6 +987,35 @@ var powershell = {
813
987
  }
814
988
  };
815
989
 
990
+ // src/languages/pug.ts
991
+ var pug = {
992
+ slug: "pug",
993
+ publishedDate: "2010-06-01",
994
+ extensions: [".pug", ".jade"],
995
+ author: "TJ Holowaychuk / Pug contributors",
996
+ website: "https://pugjs.org",
997
+ paradigms: ["declarative", "templating", "markup"],
998
+ tooling: {
999
+ runtimes: ["Node.js", "Browser"],
1000
+ packageManagers: ["npm", "pnpm", "Yarn"],
1001
+ ecosystems: ["Web", "Node.js"]
1002
+ },
1003
+ version: "3.0.3",
1004
+ logo: "https://cdn.simpleicons.org/pug/A86454",
1005
+ i18n: {
1006
+ en: {
1007
+ name: "Pug",
1008
+ description: "A whitespace-sensitive template language for generating HTML in Node.js and browsers.",
1009
+ longDescription: "Pug is a high-performance template language for writing HTML with concise, indentation-based syntax. It was formerly known as Jade and is commonly used to generate HTML from reusable templates, layouts, includes, mixins, and JavaScript expressions.\n\nIt is used in Node.js web applications, static site workflows, component prototypes, email templates, and build pipelines where teams want compact templates that compile to HTML."
1010
+ },
1011
+ es: {
1012
+ name: "Pug",
1013
+ description: "Un lenguaje de plantillas sensible a espacios para generar HTML en Node.js y navegadores.",
1014
+ longDescription: "Pug es un lenguaje de plantillas de alto rendimiento para escribir HTML con una sintaxis concisa basada en indentacion. Antes se llamaba Jade y se usa comunmente para generar HTML desde plantillas reutilizables, layouts, includes, mixins y expresiones JavaScript.\n\nSe usa en aplicaciones web con Node.js, flujos de sitios estaticos, prototipos de componentes, plantillas de email y pipelines de build donde los equipos quieren plantillas compactas que compilan a HTML."
1015
+ }
1016
+ }
1017
+ };
1018
+
816
1019
  // src/languages/python.ts
817
1020
  var python = {
818
1021
  slug: "python",
@@ -842,6 +1045,35 @@ var python = {
842
1045
  }
843
1046
  };
844
1047
 
1048
+ // src/languages/r.ts
1049
+ var r = {
1050
+ slug: "r",
1051
+ publishedDate: "1993-08-01",
1052
+ extensions: [".r", ".R", ".rmd", ".Rmd", ".qmd", ".Rprofile"],
1053
+ author: "Ross Ihaka, Robert Gentleman / R Core Team",
1054
+ website: "https://www.r-project.org",
1055
+ paradigms: ["functional", "array-oriented", "object-oriented", "statistical"],
1056
+ tooling: {
1057
+ runtimes: ["R"],
1058
+ packageManagers: ["CRAN", "renv", "pak"],
1059
+ ecosystems: ["Statistics", "Data Science", "Visualization", "Scientific Computing"]
1060
+ },
1061
+ version: "4.6.0",
1062
+ logo: "https://www.r-project.org/logo/Rlogo.svg",
1063
+ i18n: {
1064
+ en: {
1065
+ name: "R",
1066
+ description: "A statistical computing language and environment for data analysis, graphics, and research.",
1067
+ longDescription: "R is a programming language and software environment for statistical computing, data analysis, graphics, and reproducible research. It provides vectorized operations, data frames, formulas, packages, interactive workflows, and a large ecosystem centered around CRAN.\n\nIt is widely used in statistics, bioinformatics, data science, academic research, visualization, reporting, modeling, and analytical workflows that combine code, data, plots, and narrative documents."
1068
+ },
1069
+ es: {
1070
+ name: "R",
1071
+ description: "Un lenguaje y entorno de computacion estadistica para analisis de datos, graficos e investigacion.",
1072
+ longDescription: "R es un lenguaje de programacion y entorno de software para computacion estadistica, analisis de datos, graficos e investigacion reproducible. Ofrece operaciones vectorizadas, data frames, formulas, paquetes, flujos interactivos y un ecosistema amplio centrado en CRAN.\n\nSe usa ampliamente en estadistica, bioinformatica, ciencia de datos, investigacion academica, visualizacion, reportes, modelado y flujos analiticos que combinan codigo, datos, graficos y documentos narrativos."
1073
+ }
1074
+ }
1075
+ };
1076
+
845
1077
  // src/languages/ruby.ts
846
1078
  var ruby = {
847
1079
  slug: "ruby",
@@ -900,6 +1132,35 @@ var rust = {
900
1132
  }
901
1133
  };
902
1134
 
1135
+ // src/languages/scala.ts
1136
+ var scala = {
1137
+ slug: "scala",
1138
+ publishedDate: "2004-01-20",
1139
+ extensions: [".scala", ".sc"],
1140
+ author: "Martin Odersky / EPFL",
1141
+ website: "https://www.scala-lang.org",
1142
+ paradigms: ["object-oriented", "functional", "statically-typed", "concurrent"],
1143
+ tooling: {
1144
+ runtimes: ["JVM", "Scala.js", "Scala Native"],
1145
+ packageManagers: ["sbt", "Maven", "Gradle", "Scala CLI"],
1146
+ ecosystems: ["JVM", "Web", "Data Engineering", "Distributed Systems"]
1147
+ },
1148
+ version: "3.7.4",
1149
+ logo: "https://cdn.simpleicons.org/scala/DC322F",
1150
+ i18n: {
1151
+ en: {
1152
+ name: "Scala",
1153
+ description: "A JVM language that blends object-oriented and functional programming with strong static typing.",
1154
+ longDescription: "Scala is a general-purpose programming language that combines object-oriented and functional programming on the JVM. It includes strong static typing, type inference, pattern matching, higher-order functions, traits, implicits or givens, and interoperability with Java libraries.\n\nIt is used for backend services, data engineering, distributed systems, streaming pipelines, domain modeling, and applications that benefit from expressive abstractions while staying connected to the JVM ecosystem."
1155
+ },
1156
+ es: {
1157
+ name: "Scala",
1158
+ description: "Un lenguaje JVM que combina programacion orientada a objetos y funcional con tipado estatico fuerte.",
1159
+ longDescription: "Scala es un lenguaje de programacion de proposito general que combina programacion orientada a objetos y funcional sobre la JVM. Incluye tipado estatico fuerte, inferencia de tipos, pattern matching, funciones de orden superior, traits, implicits o givens e interoperabilidad con bibliotecas Java.\n\nSe usa en servicios backend, ingenieria de datos, sistemas distribuidos, pipelines de streaming, modelado de dominios y aplicaciones que aprovechan abstracciones expresivas sin salir del ecosistema JVM."
1160
+ }
1161
+ }
1162
+ };
1163
+
903
1164
  // src/languages/scss.ts
904
1165
  var scss = {
905
1166
  slug: "scss",
@@ -1039,6 +1300,30 @@ var swift = {
1039
1300
  }
1040
1301
  };
1041
1302
 
1303
+ // src/languages/toml.ts
1304
+ var toml = {
1305
+ slug: "toml",
1306
+ publishedDate: "2013-02-23",
1307
+ extensions: [".toml"],
1308
+ author: "Tom Preston-Werner / TOML contributors",
1309
+ website: "https://toml.io",
1310
+ paradigms: ["configuration", "declarative", "data-serialization"],
1311
+ version: "1.0.0",
1312
+ logo: "https://cdn.simpleicons.org/toml/9C4221",
1313
+ i18n: {
1314
+ en: {
1315
+ name: "TOML",
1316
+ description: "A minimal, human-readable configuration format that maps clearly to data structures.",
1317
+ longDescription: "TOML is a configuration file format designed to be easy for humans to read and write while mapping unambiguously to data structures such as hash tables. It supports key-value pairs, tables, arrays, strings, numbers, booleans, and date-time values.\n\nIt is used for project configuration, package manifests, build settings, tool configuration, infrastructure metadata, and applications that need concise structured data without the visual noise of more verbose formats."
1318
+ },
1319
+ es: {
1320
+ name: "TOML",
1321
+ description: "Un formato de configuracion minimo y legible que mapea claramente a estructuras de datos.",
1322
+ longDescription: "TOML es un formato de archivos de configuracion disenado para ser facil de leer y escribir por humanos mientras mapea sin ambiguedad a estructuras de datos como tablas hash. Soporta pares clave-valor, tablas, arreglos, strings, numeros, booleanos y valores de fecha y hora.\n\nSe usa en configuracion de proyectos, manifiestos de paquetes, ajustes de build, configuracion de herramientas, metadata de infraestructura y aplicaciones que necesitan datos estructurados concisos sin el ruido visual de formatos mas verbosos."
1323
+ }
1324
+ }
1325
+ };
1326
+
1042
1327
  // src/languages/typescript.ts
1043
1328
  var typescript = {
1044
1329
  slug: "typescript",
@@ -1203,6 +1488,35 @@ var yaml = {
1203
1488
  }
1204
1489
  };
1205
1490
 
1491
+ // src/languages/zig.ts
1492
+ var zig = {
1493
+ slug: "zig",
1494
+ publishedDate: "2016-02-08",
1495
+ extensions: [".zig", ".zon"],
1496
+ author: "Andrew Kelley / Zig Software Foundation",
1497
+ website: "https://ziglang.org",
1498
+ paradigms: ["imperative", "procedural", "systems", "compile-time metaprogramming"],
1499
+ tooling: {
1500
+ runtimes: ["Native"],
1501
+ packageManagers: ["Zig Package Manager"],
1502
+ ecosystems: ["Systems Programming", "Embedded", "Game Development", "Cross-compilation"]
1503
+ },
1504
+ version: "0.16.0",
1505
+ logo: "https://cdn.simpleicons.org/zig/F7A41D",
1506
+ i18n: {
1507
+ en: {
1508
+ name: "Zig",
1509
+ description: "A systems programming language and toolchain focused on robustness, control, and cross-compilation.",
1510
+ longDescription: "Zig is a general-purpose systems programming language and toolchain designed for explicit control, predictable performance, cross-compilation, and maintaining robust software. It provides manual memory management, comptime execution, error unions, integrated build tooling, and C interoperability.\n\nIt is used for systems software, embedded targets, command-line tools, game engines, low-level libraries, cross-platform native applications, and projects that need a compact language with strong compile-time capabilities."
1511
+ },
1512
+ es: {
1513
+ name: "Zig",
1514
+ description: "Un lenguaje y toolchain de sistemas enfocado en robustez, control y cross-compilation.",
1515
+ longDescription: "Zig es un lenguaje de programacion de sistemas y toolchain de proposito general disenado para control explicito, rendimiento predecible, cross-compilation y mantenimiento de software robusto. Ofrece gestion manual de memoria, ejecucion comptime, uniones de error, tooling de build integrado e interoperabilidad con C.\n\nSe usa en software de sistemas, targets embebidos, herramientas de linea de comandos, motores de juegos, bibliotecas de bajo nivel, aplicaciones nativas multiplataforma y proyectos que necesitan un lenguaje compacto con capacidades fuertes de compilacion en tiempo de build."
1516
+ }
1517
+ }
1518
+ };
1519
+
1206
1520
  // src/languages/zsh.ts
1207
1521
  var zsh = {
1208
1522
  slug: "zsh",
@@ -1235,6 +1549,7 @@ var zsh = {
1235
1549
  // src/catalog.ts
1236
1550
  var languages = [
1237
1551
  abap,
1552
+ asp,
1238
1553
  astro,
1239
1554
  assembly,
1240
1555
  bash,
@@ -1245,8 +1560,10 @@ var languages = [
1245
1560
  cpp,
1246
1561
  csharp,
1247
1562
  css,
1563
+ cuda,
1248
1564
  dart,
1249
1565
  dockerfile,
1566
+ fsharp,
1250
1567
  go,
1251
1568
  graphql,
1252
1569
  groovy,
@@ -1254,45 +1571,43 @@ var languages = [
1254
1571
  java,
1255
1572
  javascript,
1256
1573
  json,
1574
+ julia,
1257
1575
  kotlin,
1258
1576
  less,
1259
1577
  lua,
1260
1578
  makefile,
1579
+ matlab,
1261
1580
  markdown,
1262
1581
  nginx,
1263
1582
  objectiveC,
1583
+ pascal,
1264
1584
  php,
1265
1585
  powershell,
1586
+ pug,
1266
1587
  python,
1588
+ r,
1267
1589
  ruby,
1268
1590
  rust,
1591
+ scala,
1269
1592
  scss,
1270
1593
  sql,
1271
1594
  svg,
1272
1595
  svelte,
1273
1596
  swift,
1597
+ toml,
1274
1598
  typescript,
1275
1599
  visualBasic,
1276
1600
  vue,
1277
1601
  webassembly,
1278
1602
  xml,
1279
1603
  yaml,
1604
+ zig,
1280
1605
  zsh
1281
1606
  ];
1282
1607
 
1283
- // src/detect.ts
1608
+ // src/match.ts
1284
1609
  var pathSegmentPattern = /[/\\]/;
1285
- var detectLanguages = (filename) => {
1286
- const normalizedFilename = filename.trim();
1287
- if (!normalizedFilename) {
1288
- return [];
1289
- }
1290
- const basename = normalizedFilename.split(pathSegmentPattern).at(-1)?.toLowerCase() ?? "";
1291
- return languages.filter(
1292
- (language) => language.extensions.some((extension) => matchesExtension(basename, extension))
1293
- );
1294
- };
1295
- var detectLanguage = (filename) => detectLanguages(filename).at(0);
1610
+ var getBasename = (filename) => filename.trim().split(pathSegmentPattern).at(-1)?.toLowerCase() ?? "";
1296
1611
  var matchesExtension = (basename, extension) => {
1297
1612
  const normalizedExtension = extension.toLowerCase();
1298
1613
  if (normalizedExtension.startsWith(".")) {
@@ -1300,6 +1615,21 @@ var matchesExtension = (basename, extension) => {
1300
1615
  }
1301
1616
  return basename === normalizedExtension || basename.endsWith(`.${normalizedExtension}`);
1302
1617
  };
1618
+ var detectMatchingEntries = (entries, filename) => {
1619
+ const basename = getBasename(filename);
1620
+ if (!basename) {
1621
+ return [];
1622
+ }
1623
+ return entries.filter(
1624
+ (entry) => entry.extensions.some((extension) => matchesExtension(basename, extension))
1625
+ );
1626
+ };
1627
+
1628
+ // src/detect.ts
1629
+ var detectLanguages = (filename) => {
1630
+ return detectMatchingEntries(languages, filename);
1631
+ };
1632
+ var detectLanguage = (filename) => detectLanguages(filename).at(0);
1303
1633
 
1304
1634
  export { detectLanguage, detectLanguages };
1305
1635
  //# sourceMappingURL=detect.js.map