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 more legacy modes
Elian Doran686e57516b83
diff --git a/packages/codemirror/src/syntax_highlighting.ts b/packages/codemirror/src/syntax_highlighting.tsindex f2c144afe4..81c171c887 100644--- a/packages/codemirror/src/syntax_highlighting.ts+++ b/packages/codemirror/src/syntax_highlighting.ts@@ -4,14 +4,14 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | (() => L"text/plain": null,"application/dart": async () => (await import('@codemirror/legacy-modes/mode/clike')).dart,- "application/edn": null,+ "application/edn": async () => (await import('@codemirror/legacy-modes/mode/clojure')).clojure,"application/javascript;env=backend": async () => (await import('@codemirror/legacy-modes/mode/javascript')).javascript,"application/javascript;env=frontend": async () => (await import('@codemirror/legacy-modes/mode/javascript')).javascript,"application/json": async () => (await import('@codemirror/legacy-modes/mode/javascript')).json,"application/ld+json": async () => (await import('@codemirror/legacy-modes/mode/javascript')).jsonld,"application/mbox": async () => (await import('@codemirror/legacy-modes/mode/mbox')).mbox,"application/n-triples": async () => (await import('@codemirror/legacy-modes/mode/ntriples')).ntriples,- "application/pgp": null,+ "application/pgp": async () => (await import('@codemirror/legacy-modes/mode/asciiarmor')).asciiArmor,"application/sieve": async () => (await import('@codemirror/legacy-modes/mode/sieve')).sieve,"application/sparql-query": async () => (await import('@codemirror/legacy-modes/mode/sparql')).sparql,"application/typescript": async () => (await import('@codemirror/legacy-modes/mode/javascript')).typescript,@@ -44,7 +44,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | (() => L"text/x-c++src": async () => (await import('@codemirror/legacy-modes/mode/clike')).cpp,"text/x-cassandra": async () => (await import('@codemirror/legacy-modes/mode/sql')).cassandra,"text/x-clojure": async () => (await import('@codemirror/legacy-modes/mode/clojure')).clojure,- "text/x-clojurescript": null,+ "text/x-clojurescript": async () => (await import('@codemirror/legacy-modes/mode/clojure')).clojure,"text/x-cmake": async () => (await import('@codemirror/legacy-modes/mode/cmake')).cmake,"text/x-cobol": async () => (await import('@codemirror/legacy-modes/mode/cobol')).cobol,"text/x-common-lisp": async () => (await import('@codemirror/legacy-modes/mode/commonlisp')).commonLisp,@@ -65,7 +65,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | (() => L"text/x-esper": async () => (await import('@codemirror/legacy-modes/mode/sql')).esper,"text/x-factor": async () => (await import('@codemirror/legacy-modes/mode/factor')).factor,"text/x-fcl": async () => (await import('@codemirror/legacy-modes/mode/fcl')).fcl,- "text/x-feature": null,+ "text/x-feature": async () => (await import('@codemirror/legacy-modes/mode/gherkin')).gherkin,"text/x-forth": async () => (await import('@codemirror/legacy-modes/mode/forth')).forth,"text/x-fortran": async () => (await import('@codemirror/legacy-modes/mode/fortran')).fortran,"text/x-fsharp": async () => (await import('@codemirror/legacy-modes/mode/mllike')).fSharp,@@ -84,7 +84,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | (() => L"text/x-java": async () => (await import('@codemirror/legacy-modes/mode/clike')).java,"text/x-julia": async () => (await import('@codemirror/legacy-modes/mode/julia')).julia,"text/x-kotlin": async () => (await import('@codemirror/legacy-modes/mode/clike')).kotlin,- "text/x-latex": null,+ "text/x-latex": async () => (await import('@codemirror/legacy-modes/mode/stex')).stex,"text/x-less": async () => (await import('@codemirror/legacy-modes/mode/css')).less,"text/x-literate-haskell": null,"text/x-livescript": async () => (await import('@codemirror/legacy-modes/mode/livescript')).liveScript,@@ -118,7 +118,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | (() => L"text/x-q": async () => (await import('@codemirror/legacy-modes/mode/q')).q,"text/x-rpm-changes": async () => (await import('@codemirror/legacy-modes/mode/rpm')).rpmChanges,"text/x-rpm-spec": async () => (await import('@codemirror/legacy-modes/mode/rpm')).rpmSpec,- "text/x-rsrc": null,+ "text/x-rsrc": async () => (await import('@codemirror/legacy-modes/mode/r')).r,"text/x-rst": null,"text/x-ruby": async () => (await import('@codemirror/legacy-modes/mode/ruby')).ruby,"text/x-rustsrc": async () => (await import('@codemirror/legacy-modes/mode/rust')).rust,@@ -139,10 +139,10 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | (() => L"text/x-sqlite": async () => (await import('@codemirror/legacy-modes/mode/sql')).sqlite,"text/x-squirrel": async () => (await import('@codemirror/legacy-modes/mode/clike')).squirrel,"text/x-stex": async () => (await import('@codemirror/legacy-modes/mode/stex')).stex,- "text/x-stsrc": null,+ "text/x-stsrc": async () => (await import('@codemirror/legacy-modes/mode/smalltalk')).smalltalk,"text/x-styl": async () => (await import('@codemirror/legacy-modes/mode/stylus')).stylus,"text/x-swift": async () => (await import('@codemirror/legacy-modes/mode/swift')).swift,- "text/x-systemverilog": null,+ "text/x-systemverilog": async () => (await import('@codemirror/legacy-modes/mode/verilog')).verilog,"text/x-tcl": async () => (await import('@codemirror/legacy-modes/mode/tcl')).tcl,"text/x-textile": async () => (await import('@codemirror/legacy-modes/mode/textile')).textile,"text/x-tiddlywiki": async () => (await import('@codemirror/legacy-modes/mode/tiddlywiki')).tiddlyWiki,