chore(highlightjs): integrate terraform

This commit is contained in:
Elian Doran
2025-05-18 11:33:02 +03:00
parent 294727600b
commit 6f96a0ef4c
3 changed files with 84 additions and 86 deletions

View File

@@ -20,7 +20,7 @@ const byMimeType: Record<string, (Mapping | null)> = {
"application/sparql-query": null,
"application/typescript": { loader: import("highlight.js/lib/languages/typescript.js"), alias: "typescript" },
"application/x-aspx": null,
"application/x-bat": { loader: import("highlight.js/lib/languages/bat.js"), alias: "bat" },
"application/x-bat": { loader: import("highlight.js/lib/languages/dos.js"), alias: "bat" },
"application/x-cypher-query": null,
"application/x-ejs": null,
"application/x-erb": { loader: import("highlight.js/lib/languages/erb.js"), alias: "erb" },
@@ -32,7 +32,7 @@ const byMimeType: Record<string, (Mapping | null)> = {
"text/apl": null,
"text/coffeescript": { loader: import("highlight.js/lib/languages/coffeescript.js"), alias: "coffeescript" },
"text/css": { loader: import("highlight.js/lib/languages/css.js"), alias: "css" },
"text/html": { loader: import("highlight.js/lib/languages/html.js"), alias: "html" },
"text/html": { loader: import("highlight.js/lib/languages/xml.js"), alias: "html" },
"text/jinja2": null,
"text/jsx": { loader: import("highlight.js/lib/languages/javascript.js"), alias: "javascript" },
"text/mirc": null,
@@ -84,7 +84,7 @@ const byMimeType: Record<string, (Mapping | null)> = {
"text/x-haml": { loader: import("highlight.js/lib/languages/haml.js"), alias: "haml" },
"text/x-haskell": { loader: import("highlight.js/lib/languages/haskell.js"), alias: "haskell" },
"text/x-haxe": { loader: import("highlight.js/lib/languages/haxe.js"), alias: "haxe" },
"text/x-hcl": { loader: import("highlight.js/lib/languages/terraform.js"), alias: "terraform" },
"text/x-hcl": { loader: import("./languages/terraform.js"), alias: "terraform" },
"text/x-hxml": null,
"text/x-idl": null,
"text/x-java": { loader: import("highlight.js/lib/languages/java.js"), alias: "java" },