Merge pull request #12545 from mogorman/elixir_syntax_highlighting

feat: add Elixir highlighting
This commit is contained in:
Timothy Jaeryang Baek
2025-04-06 23:45:30 -07:00
committed by GitHub
3 changed files with 30 additions and 0 deletions

View File

@@ -98,6 +98,16 @@
}
})
);
languages.push(
LanguageDescription.of({
name: 'Elixir',
extensions: ['ex', 'exs'],
load() {
return import('codemirror-lang-elixir').then((m) => m.elixir());
}
})
);
const getLang = async () => {
const language = languages.find((l) => l.alias.includes(lang));
return await language?.load();