This commit is contained in:
Martin Kraft
2023-01-06 18:17:39 +01:00
committed by GitHub
parent 5681129e40
commit 6f500bcc16
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -92,6 +92,7 @@ export {
} from "@codemirror/language";
export { yaml as yamlLanguage } from "https://esm.sh/@codemirror/legacy-modes@6.2.0/mode/yaml?external=@codemirror/language";
export { standardSQL as sqlLanguage } from "https://esm.sh/@codemirror/legacy-modes@6.3.1/mode/sql?external=@codemirror/language";
export {
javascriptLanguage,
typescriptLanguage,
+6
View File
@@ -32,6 +32,7 @@ import {
ViewPlugin,
ViewUpdate,
yamlLanguage,
sqlLanguage,
} from "../common/deps.ts";
import { SilverBulletHooks } from "../common/manifest.ts";
import {
@@ -510,6 +511,11 @@ export class Editor {
alias: ["ts"],
support: new LanguageSupport(typescriptLanguage),
}),
LanguageDescription.of({
name: "sql",
alias: ["sql"],
support: new LanguageSupport(StreamLanguage.define(sqlLanguage)),
}),
],
addKeymap: true,
}),