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 Twig support
Elian Doran620927dfea1e
diff --git a/packages/codemirror/package.json b/packages/codemirror/package.jsonindex e95a3cc565..6de59e301c 100644--- a/packages/codemirror/package.json+++ b/packages/codemirror/package.json@@ -26,6 +26,7 @@"@codemirror/legacy-modes": "6.5.1","@codemirror/search": "6.5.10","@codemirror/view": "6.36.7",+ "@ssddanbrown/codemirror-lang-twig": "1.0.0","codemirror-lang-hcl": "0.1.0"}}diff --git a/packages/codemirror/src/syntax_highlighting.ts b/packages/codemirror/src/syntax_highlighting.tsindex 7f2e4c75bd..81ef55ce4a 100644--- a/packages/codemirror/src/syntax_highlighting.ts+++ b/packages/codemirror/src/syntax_highlighting.ts@@ -156,7 +156,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | Language"text/x-ttcn-asn": async () => (await import('@codemirror/legacy-modes/mode/ttcn')).ttcn,"text/x-ttcn-cfg": async () => (await import('@codemirror/legacy-modes/mode/ttcn-cfg')).ttcnCfg,"text/x-ttcn": async () => (await import('@codemirror/legacy-modes/mode/ttcn')).ttcn,- "text/x-twig": null,+ "text/x-twig": async () => ((await import('@ssddanbrown/codemirror-lang-twig')).twig()),"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,diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 4910773dfe..7822975da6 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -1175,6 +1175,9 @@ importers:'@codemirror/view':specifier: 6.36.7version: 6.36.7+ '@ssddanbrown/codemirror-lang-twig':+ specifier: 1.0.0+ version: 1.0.0codemirror-lang-hcl:specifier: 0.1.0version: 0.1.0@@ -4488,6 +4491,9 @@ packages:'@socket.io/[email protected]':resolution: {integrity: sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==}+ '@ssddanbrown/[email protected]':+ resolution: {integrity: sha512-7WIMIh8Ssc54TooGCY57WU2rKEqZZrcV2tZSVRPtd0gKYsrDEKCSLWpQjUWEx7bdgh3NKHUjq1O4ugIzI/+dwQ==}+'@svgr/[email protected]':resolution: {integrity: sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==}engines: {node: '>=14'}@@ -15065,14 +15071,6 @@ snapshots:- supports-color- utf-8-validate- '@ckeditor/[email protected]':- dependencies:- '@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])- '@ckeditor/ckeditor5-icons': 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)-dependencies:'@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])@@ -15107,13 +15105,6 @@ snapshots:- supports-color- utf-8-validate- '@ckeditor/[email protected]':- dependencies:- '@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])- '@ckeditor/ckeditor5-utils': 45.0.0([email protected])([email protected])- ckeditor5: 45.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)- es-toolkit: 1.32.0-dependencies:'@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])@@ -16192,7 +16183,7 @@ snapshots:'@ckeditor/[email protected]':dependencies:- '@ckeditor/ckeditor5-autosave': 45.0.0+ '@ckeditor/ckeditor5-autosave': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-comments': 45.0.0'@ckeditor/ckeditor5-core': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-editor-classic': 45.0.0@@ -19530,6 +19521,12 @@ snapshots:'@socket.io/[email protected]': {}+ '@ssddanbrown/[email protected]':+ dependencies:+ '@codemirror/language': 6.11.0+ '@lezer/highlight': 1.2.1+ '@lezer/lr': 1.4.2+'@svgr/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.26.10@@ -21770,9 +21767,9 @@ snapshots:[email protected](patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41):dependencies:'@ckeditor/ckeditor5-adapter-ckfinder': 45.0.0- '@ckeditor/ckeditor5-alignment': 45.0.0+ '@ckeditor/ckeditor5-alignment': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-autoformat': 45.0.0- '@ckeditor/ckeditor5-autosave': 45.0.0+ '@ckeditor/ckeditor5-autosave': 45.0.0([email protected])([email protected])'@ckeditor/ckeditor5-basic-styles': 45.0.0'@ckeditor/ckeditor5-block-quote': 45.0.0'@ckeditor/ckeditor5-bookmark': 45.0.0([email protected])([email protected])