chore(code): enable syntax highlighting

This commit is contained in:
Elian Doran
2025-05-10 23:34:23 +03:00
parent 5a07d5a913
commit 01f02b736c
3 changed files with 24 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
import { type StreamParser } from "@codemirror/language"
const mappings: Record<string, (() => Promise<StreamParser<unknown>>) | null> = {
const byMimeType: Record<string, (() => Promise<StreamParser<unknown>>) | null> = {
"text/plain": null,
"text/apl": async () => (await import('@codemirror/legacy-modes/mode/apl')).apl,
"text/x-ttcn-asn": async () => (await import('@codemirror/legacy-modes/mode/ttcn')).ttcn,
@@ -162,4 +162,4 @@ const mappings: Record<string, (() => Promise<StreamParser<unknown>>) | null> =
"text/x-z80": async () => (await import('@codemirror/legacy-modes/mode/z80')).z80
}
export default mappings;
export default byMimeType;