mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 02:52:27 +08:00
chore(code): integrate more legacy modes
This commit is contained in:
parent
9c8126016e
commit
686e57516b
@ -4,14 +4,14 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | (() => L
|
|||||||
"text/plain": null,
|
"text/plain": null,
|
||||||
|
|
||||||
"application/dart": async () => (await import('@codemirror/legacy-modes/mode/clike')).dart,
|
"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=backend": async () => (await import('@codemirror/legacy-modes/mode/javascript')).javascript,
|
||||||
"application/javascript;env=frontend": 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/json": async () => (await import('@codemirror/legacy-modes/mode/javascript')).json,
|
||||||
"application/ld+json": async () => (await import('@codemirror/legacy-modes/mode/javascript')).jsonld,
|
"application/ld+json": async () => (await import('@codemirror/legacy-modes/mode/javascript')).jsonld,
|
||||||
"application/mbox": async () => (await import('@codemirror/legacy-modes/mode/mbox')).mbox,
|
"application/mbox": async () => (await import('@codemirror/legacy-modes/mode/mbox')).mbox,
|
||||||
"application/n-triples": async () => (await import('@codemirror/legacy-modes/mode/ntriples')).ntriples,
|
"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/sieve": async () => (await import('@codemirror/legacy-modes/mode/sieve')).sieve,
|
||||||
"application/sparql-query": async () => (await import('@codemirror/legacy-modes/mode/sparql')).sparql,
|
"application/sparql-query": async () => (await import('@codemirror/legacy-modes/mode/sparql')).sparql,
|
||||||
"application/typescript": async () => (await import('@codemirror/legacy-modes/mode/javascript')).typescript,
|
"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-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-cassandra": async () => (await import('@codemirror/legacy-modes/mode/sql')).cassandra,
|
||||||
"text/x-clojure": async () => (await import('@codemirror/legacy-modes/mode/clojure')).clojure,
|
"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-cmake": async () => (await import('@codemirror/legacy-modes/mode/cmake')).cmake,
|
||||||
"text/x-cobol": async () => (await import('@codemirror/legacy-modes/mode/cobol')).cobol,
|
"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,
|
"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-esper": async () => (await import('@codemirror/legacy-modes/mode/sql')).esper,
|
||||||
"text/x-factor": async () => (await import('@codemirror/legacy-modes/mode/factor')).factor,
|
"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-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-forth": async () => (await import('@codemirror/legacy-modes/mode/forth')).forth,
|
||||||
"text/x-fortran": async () => (await import('@codemirror/legacy-modes/mode/fortran')).fortran,
|
"text/x-fortran": async () => (await import('@codemirror/legacy-modes/mode/fortran')).fortran,
|
||||||
"text/x-fsharp": async () => (await import('@codemirror/legacy-modes/mode/mllike')).fSharp,
|
"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-java": async () => (await import('@codemirror/legacy-modes/mode/clike')).java,
|
||||||
"text/x-julia": async () => (await import('@codemirror/legacy-modes/mode/julia')).julia,
|
"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-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-less": async () => (await import('@codemirror/legacy-modes/mode/css')).less,
|
||||||
"text/x-literate-haskell": null,
|
"text/x-literate-haskell": null,
|
||||||
"text/x-livescript": async () => (await import('@codemirror/legacy-modes/mode/livescript')).liveScript,
|
"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-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-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-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-rst": null,
|
||||||
"text/x-ruby": async () => (await import('@codemirror/legacy-modes/mode/ruby')).ruby,
|
"text/x-ruby": async () => (await import('@codemirror/legacy-modes/mode/ruby')).ruby,
|
||||||
"text/x-rustsrc": async () => (await import('@codemirror/legacy-modes/mode/rust')).rust,
|
"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-sqlite": async () => (await import('@codemirror/legacy-modes/mode/sql')).sqlite,
|
||||||
"text/x-squirrel": async () => (await import('@codemirror/legacy-modes/mode/clike')).squirrel,
|
"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-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-styl": async () => (await import('@codemirror/legacy-modes/mode/stylus')).stylus,
|
||||||
"text/x-swift": async () => (await import('@codemirror/legacy-modes/mode/swift')).swift,
|
"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-tcl": async () => (await import('@codemirror/legacy-modes/mode/tcl')).tcl,
|
||||||
"text/x-textile": async () => (await import('@codemirror/legacy-modes/mode/textile')).textile,
|
"text/x-textile": async () => (await import('@codemirror/legacy-modes/mode/textile')).textile,
|
||||||
"text/x-tiddlywiki": async () => (await import('@codemirror/legacy-modes/mode/tiddlywiki')).tiddlyWiki,
|
"text/x-tiddlywiki": async () => (await import('@codemirror/legacy-modes/mode/tiddlywiki')).tiddlyWiki,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user