Fixes #234
This commit is contained in:
parent
5681129e40
commit
6f500bcc16
@ -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,
|
||||
|
@ -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,
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user