Adds CodeMirror language support for languages that are not bundled with Acode.
- AutoHotkey (
.ahk,.ah1,.ah2,.ahk1,.ahk2) - Zig (
.zig,.zon) - Git ignore (
.gitignore,.ignore, Git exclude-style files) - BibTeX (
.bib) - Elixir (
.ex,.exs,.eex,.heex,.leex) - GolfScript (
.gs) - GraphQL (
.graphql,.graphqls,.gql) - Graphviz DOT (
.dot,.gv) - HCL / Terraform (
.hcl,.tf,.tfvars) - J (
.ijs) - Janet (
.janet) - Pkl (
.pkl) - Svelte (
.svelte) - WGSL (
.wgsl)
Community modes are registered only when Acode does not already provide a mode
with the same name. Languages already covered by Acode's
@codemirror/language-data registry are intentionally not duplicated.
- Create
src/languages/<language>/index.js. - Export a descriptor containing
name,caption,extensions, and a lazyload()function that returns a CodeMirror extension orLanguageSupport. - Add the descriptor to
src/languages/index.js.
The language can use StreamLanguage, LRLanguage with a Lezer parser, or an
existing CodeMirror language package. Registration and cleanup are handled by
the shared registry.
bun install
bun run check
bun run build