Add go snippet support (#709)
parent
352c064420
commit
740b3a7664
|
@ -59,6 +59,7 @@ export { toml as tomlLanguage } from "@codemirror/legacy-modes/mode/toml?externa
|
||||||
export { xml as xmlLanguage } from "@codemirror/legacy-modes/mode/xml?external=@codemirror/language&target=es2022";
|
export { xml as xmlLanguage } from "@codemirror/legacy-modes/mode/xml?external=@codemirror/language&target=es2022";
|
||||||
export { json as jsonLanguage } from "@codemirror/legacy-modes/mode/javascript?external=@codemirror/language&target=es2022";
|
export { json as jsonLanguage } from "@codemirror/legacy-modes/mode/javascript?external=@codemirror/language&target=es2022";
|
||||||
export { htmlLanguage } from "@codemirror/lang-html";
|
export { htmlLanguage } from "@codemirror/lang-html";
|
||||||
|
export { go as goLanguage } from "@codemirror/legacy-modes/mode/go?external=@codemirror/language&target=es2022";
|
||||||
|
|
||||||
export { Language, StreamLanguage } from "@codemirror/language";
|
export { Language, StreamLanguage } from "@codemirror/language";
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ import {
|
||||||
typescriptLanguage,
|
typescriptLanguage,
|
||||||
xmlLanguage,
|
xmlLanguage,
|
||||||
yamlLanguage,
|
yamlLanguage,
|
||||||
|
goLanguage,
|
||||||
} from "./deps.ts";
|
} from "./deps.ts";
|
||||||
import {
|
import {
|
||||||
extendedMarkdownLanguage,
|
extendedMarkdownLanguage,
|
||||||
|
@ -83,6 +84,8 @@ export const builtinLanguages: Record<string, Language> = {
|
||||||
"objective-c++": StreamLanguage.define(objectiveCppLanguage),
|
"objective-c++": StreamLanguage.define(objectiveCppLanguage),
|
||||||
"objectivec++": StreamLanguage.define(objectiveCppLanguage),
|
"objectivec++": StreamLanguage.define(objectiveCppLanguage),
|
||||||
"dart": StreamLanguage.define(dartLanguage),
|
"dart": StreamLanguage.define(dartLanguage),
|
||||||
|
"go": StreamLanguage.define(goLanguage),
|
||||||
|
"golang": StreamLanguage.define(goLanguage),
|
||||||
"query": LRLanguage.define({
|
"query": LRLanguage.define({
|
||||||
name: "query",
|
name: "query",
|
||||||
parser: highlightingQueryParser,
|
parser: highlightingQueryParser,
|
||||||
|
|
Loading…
Reference in New Issue