mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-22 00:31:30 +00:00
26 lines
597 B
TypeScript
26 lines
597 B
TypeScript
import { LanguageDescription } from '@codemirror/language';
|
|
import { languages } from '@codemirror/language-data';
|
|
|
|
const octaveLang = languages.find((l) => l.name === 'Octave');
|
|
if (octaveLang) {
|
|
(octaveLang.alias as string[]).push('matlab');
|
|
}
|
|
|
|
languages.push(
|
|
LanguageDescription.of({
|
|
name: 'HCL',
|
|
extensions: ['hcl', 'tf'],
|
|
load() {
|
|
return import('codemirror-lang-hcl').then((m) => m.hcl());
|
|
}
|
|
})
|
|
);
|
|
languages.push(
|
|
LanguageDescription.of({
|
|
name: 'Elixir',
|
|
extensions: ['ex', 'exs'],
|
|
load() {
|
|
return import('codemirror-lang-elixir').then((m) => m.elixir());
|
|
}
|
|
})
|
|
);
|