language.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. ".html": "html",
  43. ".htm": "html",
  44. ".ini": "ini",
  45. ".java": "java",
  46. ".js": "javascript",
  47. ".jsx": "javascriptreact",
  48. ".json": "json",
  49. ".tex": "latex",
  50. ".latex": "latex",
  51. ".less": "less",
  52. ".lua": "lua",
  53. ".makefile": "makefile",
  54. makefile: "makefile",
  55. ".md": "markdown",
  56. ".markdown": "markdown",
  57. ".m": "objective-c",
  58. ".mm": "objective-cpp",
  59. ".pl": "perl",
  60. ".pm": "perl",
  61. ".pm6": "perl6",
  62. ".php": "php",
  63. ".ps1": "powershell",
  64. ".psm1": "powershell",
  65. ".pug": "jade",
  66. ".jade": "jade",
  67. ".py": "python",
  68. ".r": "r",
  69. ".cshtml": "razor",
  70. ".razor": "razor",
  71. ".rb": "ruby",
  72. ".rake": "ruby",
  73. ".gemspec": "ruby",
  74. ".ru": "ruby",
  75. ".erb": "erb",
  76. ".html.erb": "erb",
  77. ".js.erb": "erb",
  78. ".css.erb": "erb",
  79. ".json.erb": "erb",
  80. ".rs": "rust",
  81. ".scss": "scss",
  82. ".sass": "sass",
  83. ".scala": "scala",
  84. ".shader": "shaderlab",
  85. ".sh": "shellscript",
  86. ".bash": "shellscript",
  87. ".zsh": "shellscript",
  88. ".ksh": "shellscript",
  89. ".sql": "sql",
  90. ".svelte": "svelte",
  91. ".swift": "swift",
  92. ".ts": "typescript",
  93. ".tsx": "typescriptreact",
  94. ".mts": "typescript",
  95. ".cts": "typescript",
  96. ".mtsx": "typescriptreact",
  97. ".ctsx": "typescriptreact",
  98. ".xml": "xml",
  99. ".xsl": "xsl",
  100. ".yaml": "yaml",
  101. ".yml": "yaml",
  102. ".mjs": "javascript",
  103. ".cjs": "javascript",
  104. ".vue": "vue",
  105. ".zig": "zig",
  106. ".zon": "zig",
  107. ".astro": "astro",
  108. ".ml": "ocaml",
  109. ".mli": "ocaml",
  110. ".tf": "terraform",
  111. ".tfvars": "terraform-vars",
  112. ".hcl": "hcl",
  113. } as const