chore(code): integrate PHP support

This commit is contained in:
Elian Doran
2025-05-11 13:12:52 +03:00
parent afa1aa32aa
commit 1454af6087
3 changed files with 33 additions and 26 deletions

View File

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

View File

@@ -112,7 +112,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | Language
"text/x-pascal": async () => (await import('@codemirror/legacy-modes/mode/pascal')).pascal,
"text/x-perl": async () => (await import('@codemirror/legacy-modes/mode/perl')).perl,
"text/x-pgsql": async () => (await import('@codemirror/legacy-modes/mode/sql')).pgSQL,
"text/x-php": null,
"text/x-php": async () => ((await import('@codemirror/lang-php')).php()),
"text/x-pig": async () => (await import('@codemirror/legacy-modes/mode/pig')).pig,
"text/x-plsql": async () => (await import('@codemirror/legacy-modes/mode/sql')).plSQL,
"text/x-properties": async () => (await import('@codemirror/legacy-modes/mode/properties')).properties,