Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(code): integrate PHP support
Elian Doran1454af60878a
diff --git a/packages/codemirror/package.json b/packages/codemirror/package.jsonindex cb1d2ab959..43109981cf 100644--- a/packages/codemirror/package.json+++ b/packages/codemirror/package.json@@ -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",diff --git a/packages/codemirror/src/syntax_highlighting.ts b/packages/codemirror/src/syntax_highlighting.tsindex 490ce86062..fb7f9e9f5b 100644--- a/packages/codemirror/src/syntax_highlighting.ts+++ b/packages/codemirror/src/syntax_highlighting.ts@@ -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,diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex a6d5cf32e1..b3648501f8 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -1160,6 +1160,9 @@ importers:'@codemirror/lang-markdown':specifier: 6.3.2version: 6.3.2+ '@codemirror/lang-php':+ specifier: 6.0.1+ version: 6.0.1'@codemirror/legacy-modes':specifier: 6.5.1version: 6.5.1@@ -2175,6 +2178,9 @@ packages:'@codemirror/[email protected]':resolution: {integrity: sha512-c/5MYinGbFxYl4itE9q/rgN/sMTjOr8XL5OWnC+EaRMLfCbVUmmubTJfdgpfcSS2SCaT7b+Q+xi3l6CgoE+BsA==}+ '@codemirror/[email protected]':+ resolution: {integrity: sha512-ublojMdw/PNWa7qdN5TMsjmqkNuTBD3k6ndZ4Z0S25SBAiweFGyY68AS3xNcIOlb6DDFDvKlinLQ40vSLqf8xA==}+'@codemirror/[email protected]':resolution: {integrity: sha512-A7+f++LodNNc1wGgoRDTt78cOwWm9KVezApgjOMp1W4hM0898nsqBXwF+sbePE7ZRcjN7Sa1Z5m2oN27XkmEjQ==}@@ -3402,6 +3408,9 @@ packages:'@lezer/[email protected]':resolution: {integrity: sha512-kfw+2uMrQ/wy/+ONfrH83OkdFNM0ye5Xq96cLlaCy7h5UT9FO54DU4oRoIc0CSBh5NWmWuiIJA7NGLMJbQ+Oxg==}+ '@lezer/[email protected]':+ resolution: {integrity: sha512-GN7BnqtGRpFyeoKSEqxvGvhJQiI4zkgmYnDk/JIyc7H7Ifc1tkPnUn/R2R8meH3h/aBf5rzjvU8ZQoyiNDtDrA==}+'@ljharb/[email protected]':resolution: {integrity: sha512-skQiAOrCfO7vRTq53cxznMpks7wS1va95UCidALlOVWqvBAzwPVErwizDwoMqNVMEn1mDq0utxZd02eIrvF1lw==}engines: {node: '>= 0.4'}@@ -15062,15 +15071,6 @@ snapshots:- supports-color- utf-8-validate- '@ckeditor/[email protected]':- dependencies:- '@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])- '@ckeditor/ckeditor5-engine': 45.0.0([email protected])([email protected])- '@ckeditor/ckeditor5-heading': 45.0.0([email protected])([email protected])- '@ckeditor/ckeditor5-typing': 45.0.0([email protected])([email protected])- '@ckeditor/ckeditor5-utils': 45.0.0([email protected])([email protected])- ckeditor5: 45.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)-dependencies:'@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])@@ -15241,27 +15241,23 @@ snapshots:- supports-color- utf-8-validate+ '@ckeditor/[email protected]':dependencies:'@ckeditor/ckeditor5-comments': 45.0.0'@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-icons': 45.0.0'@ckeditor/ckeditor5-theme-lark': 45.0.0([email protected])([email protected])- '@ckeditor/ckeditor5-track-changes': 45.0.0([email protected])([email protected])+ '@ckeditor/ckeditor5-track-changes': 45.0.0'@ckeditor/ckeditor5-ui': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-utils': 45.0.0([email protected])([email protected])'@types/luxon': 3.4.2ckeditor5: 45.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)luxon: 3.5.0- transitivePeerDependencies:- - bufferutil- - supports-color- - utf-8-validate'@ckeditor/[email protected]':dependencies:'@ckeditor/ckeditor5-clipboard': 45.0.0([email protected])([email protected])- '@ckeditor/ckeditor5-collaboration-core': 45.0.0([email protected])([email protected])+ '@ckeditor/ckeditor5-collaboration-core': 45.0.0'@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-engine': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-enter': 45.0.0([email protected])([email protected])@@ -15282,7 +15278,7 @@ snapshots:dependencies:'@ckeditor/ckeditor5-clipboard': 45.0.0([email protected])([email protected])- '@ckeditor/ckeditor5-collaboration-core': 45.0.0([email protected])([email protected])+ '@ckeditor/ckeditor5-collaboration-core': 45.0.0'@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-engine': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-enter': 45.0.0([email protected])([email protected])@@ -16103,7 +16099,7 @@ snapshots:'@ckeditor/ckeditor5-operations-compressor': 45.0.0'@ckeditor/ckeditor5-revision-history': 45.0.0'@ckeditor/ckeditor5-theme-lark': 45.0.0([email protected])([email protected])- '@ckeditor/ckeditor5-track-changes': 45.0.0([email protected])([email protected])+ '@ckeditor/ckeditor5-track-changes': 45.0.0'@ckeditor/ckeditor5-ui': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-utils': 45.0.0([email protected])([email protected])ckeditor5: 45.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)@@ -16304,7 +16300,7 @@ snapshots:- supports-color- utf-8-validate+ '@ckeditor/[email protected]':dependencies:'@ckeditor/ckeditor5-clipboard': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-code-block': 45.0.0(patch_hash=2361d8caad7d6b5bddacc3a3b4aa37dbfba260b1c1b22a450413a79c1bb1ce95)@@ -16333,10 +16329,6 @@ snapshots:ckeditor5: 45.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)ckeditor5-collaboration: 45.0.0es-toolkit: 1.32.0- transitivePeerDependencies:- - bufferutil- - supports-color- - utf-8-validatedependencies:@@ -16497,6 +16489,14 @@ snapshots:'@lezer/common': 1.2.3'@lezer/markdown': 1.4.3+ '@codemirror/[email protected]':+ dependencies:+ '@codemirror/lang-html': 6.4.9+ '@codemirror/language': 6.11.0+ '@codemirror/state': 6.5.2+ '@lezer/common': 1.2.3+ '@lezer/php': 1.0.2+'@codemirror/[email protected]':dependencies:'@codemirror/state': 6.5.2@@ -17951,6 +17951,12 @@ snapshots:'@lezer/common': 1.2.3'@lezer/highlight': 1.2.1+ '@lezer/[email protected]':+ dependencies:+ '@lezer/common': 1.2.3+ '@lezer/highlight': 1.2.1+ '@lezer/lr': 1.4.2+'@ljharb/[email protected]':dependencies:'@ljharb/through': 2.3.14@@ -21712,13 +21718,13 @@ snapshots:dependencies:- '@ckeditor/ckeditor5-collaboration-core': 45.0.0([email protected])([email protected])+ '@ckeditor/ckeditor5-collaboration-core': 45.0.0[email protected](patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41):dependencies:'@ckeditor/ckeditor5-adapter-ckfinder': 45.0.0'@ckeditor/ckeditor5-alignment': 45.0.0([email protected])([email protected])- '@ckeditor/ckeditor5-autoformat': 45.0.0+ '@ckeditor/ckeditor5-autoformat': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-autosave': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-basic-styles': 45.0.0'@ckeditor/ckeditor5-block-quote': 45.0.0