mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
chore(code): integrate Smarty support
This commit is contained in:
4
packages/codemirror/src/augmentation.d.ts
vendored
Normal file
4
packages/codemirror/src/augmentation.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
declare module "@ssddanbrown/codemirror-lang-smarty" {
|
||||
import type { StreamParser } from "@codemirror/language"
|
||||
export const smarty: StreamParser<unknown>;
|
||||
}
|
||||
@@ -134,7 +134,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | Language
|
||||
"text/x-scss": async () => (await import('@codemirror/legacy-modes/mode/css')).sCSS,
|
||||
"text/x-sh": async () => (await import('@codemirror/legacy-modes/mode/shell')).shell,
|
||||
"text/x-slim": null,
|
||||
"text/x-smarty": null,
|
||||
"text/x-smarty": async () => ((await import('@ssddanbrown/codemirror-lang-smarty')).smarty),
|
||||
"text/x-sml": async () => (await import('@codemirror/legacy-modes/mode/mllike')).sml,
|
||||
"text/x-solr": async () => (await import('@codemirror/legacy-modes/mode/solr')).solr,
|
||||
"text/x-soy": null,
|
||||
|
||||
Reference in New Issue
Block a user