chore(code): integrate Vue support

This commit is contained in:
Elian Doran
2025-05-11 13:13:47 +03:00
parent 1454af6087
commit 327fe211ff
3 changed files with 55 additions and 7 deletions

View File

@@ -22,6 +22,7 @@
"@codemirror/commands": "6.8.1",
"@codemirror/lang-markdown": "6.3.2",
"@codemirror/lang-php": "6.0.1",
"@codemirror/lang-vue": "0.1.3",
"@codemirror/legacy-modes": "6.5.1",
"@codemirror/search": "6.5.10",
"@codemirror/view": "6.36.7",

View File

@@ -160,7 +160,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | Language
"text/x-vb": async () => (await import('@codemirror/legacy-modes/mode/vb')).vb,
"text/x-verilog": async () => (await import('@codemirror/legacy-modes/mode/verilog')).verilog,
"text/x-vhdl": async () => (await import('@codemirror/legacy-modes/mode/vhdl')).vhdl,
"text/x-vue": null,
"text/x-vue": async () => ((await import('@codemirror/lang-vue')).vue()),
"text/x-webidl": async () => (await import('@codemirror/legacy-modes/mode/webidl')).webIDL,
"text/x-xu": async () => (await import('@codemirror/legacy-modes/mode/mscgen')).xu,
"text/x-yacas": async () => (await import('@codemirror/legacy-modes/mode/yacas')).yacas,