1
0
This commit is contained in:
Martin Kraft 2023-01-06 12:17:39 -05:00 committed by GitHub
parent 5681129e40
commit 6f500bcc16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

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,

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,
}),