language.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. export const LANGUAGE_EXTENSIONS: Record<string, string> = {
  2. ".abap": "abap",
  3. ".bat": "bat",
  4. ".bib": "bibtex",
  5. ".bibtex": "bibtex",
  6. ".clj": "clojure",
  7. ".cljs": "clojure",
  8. ".cljc": "clojure",
  9. ".edn": "clojure",
  10. ".coffee": "coffeescript",
  11. ".c": "c",
  12. ".cpp": "cpp",
  13. ".cxx": "cpp",
  14. ".cc": "cpp",
  15. ".c++": "cpp",
  16. ".cs": "csharp",
  17. ".css": "css",
  18. ".d": "d",
  19. ".pas": "pascal",
  20. ".pascal": "pascal",
  21. ".diff": "diff",
  22. ".patch": "diff",
  23. ".dart": "dart",
  24. ".dockerfile": "dockerfile",
  25. ".ex": "elixir",
  26. ".exs": "elixir",
  27. ".erl": "erlang",
  28. ".ets": "typescript",
  29. ".hrl": "erlang",
  30. ".fs": "fsharp",
  31. ".fsi": "fsharp",
  32. ".fsx": "fsharp",
  33. ".fsscript": "fsharp",
  34. ".gitcommit": "git-commit",
  35. ".gitrebase": "git-rebase",
  36. ".go": "go",
  37. ".groovy": "groovy",
  38. ".gleam": "gleam",
  39. ".hbs": "handlebars",
  40. ".handlebars": "handlebars",
  41. ".hs": "haskell",
  42. ".lhs": "haskell",
  43. ".html": "html",
  44. ".htm": "html",
  45. ".ini": "ini",
  46. ".java": "java",
  47. ".js": "javascript",
  48. ".jsx": "javascriptreact",
  49. ".json": "json",
  50. ".tex": "latex",
  51. ".latex": "latex",
  52. ".less": "less",
  53. ".lua": "lua",
  54. ".makefile": "makefile",
  55. makefile: "makefile",
  56. ".md": "markdown",
  57. ".markdown": "markdown",
  58. ".m": "objective-c",
  59. ".mm": "objective-cpp",
  60. ".pl": "perl",
  61. ".pm": "perl",
  62. ".pm6": "perl6",
  63. ".php": "php",
  64. ".ps1": "powershell",
  65. ".psm1": "powershell",
  66. ".pug": "jade",
  67. ".jade": "jade",
  68. ".py": "python",
  69. ".r": "r",
  70. ".cshtml": "razor",
  71. ".razor": "razor",
  72. ".rb": "ruby",
  73. ".rake": "ruby",
  74. ".gemspec": "ruby",
  75. ".ru": "ruby",
  76. ".erb": "erb",
  77. ".html.erb": "erb",
  78. ".js.erb": "erb",
  79. ".css.erb": "erb",
  80. ".json.erb": "erb",
  81. ".rs": "rust",
  82. ".scss": "scss",
  83. ".sass": "sass",
  84. ".scala": "scala",
  85. ".shader": "shaderlab",
  86. ".sh": "shellscript",
  87. ".bash": "shellscript",
  88. ".zsh": "shellscript",
  89. ".ksh": "shellscript",
  90. ".sql": "sql",
  91. ".svelte": "svelte",
  92. ".swift": "swift",
  93. ".ts": "typescript",
  94. ".tsx": "typescriptreact",
  95. ".mts": "typescript",
  96. ".cts": "typescript",
  97. ".mtsx": "typescriptreact",
  98. ".ctsx": "typescriptreact",
  99. ".xml": "xml",
  100. ".xsl": "xsl",
  101. ".yaml": "yaml",
  102. ".yml": "yaml",
  103. ".mjs": "javascript",
  104. ".cjs": "javascript",
  105. ".vue": "vue",
  106. ".zig": "zig",
  107. ".zon": "zig",
  108. ".astro": "astro",
  109. ".ml": "ocaml",
  110. ".mli": "ocaml",
  111. ".tf": "terraform",
  112. ".tfvars": "terraform-vars",
  113. ".hcl": "hcl",
  114. ".nix": "nix",
  115. ".typ": "typst",
  116. ".typc": "typst",
  117. } as const