Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 8ecf6ad

Browse files
committed
feat(codemirror): add elixir support
1 parent 6bfc78e commit 8ecf6ad

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

packages/codemirror/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"@replit/codemirror-vim": "6.3.0",
6060
"@ssddanbrown/codemirror-lang-smarty": "1.0.0",
6161
"@ssddanbrown/codemirror-lang-twig": "1.0.0",
62+
"codemirror-lang-elixir": "4.0.0",
6263
"codemirror-lang-hcl": "0.1.0",
6364
"codemirror-lang-mermaid": "0.5.0",
6465
"eslint-linter-browserify": "9.29.0"

packages/codemirror/src/syntax_highlighting.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | Language
8484
"text/x-ebnf": async () => (await import('@codemirror/legacy-modes/mode/ebnf')).ebnf,
8585
"text/x-ecl": async () => (await import('@codemirror/legacy-modes/mode/ecl')).ecl,
8686
"text/x-eiffel": async () => (await import('@codemirror/legacy-modes/mode/eiffel')).eiffel,
87+
"text/x-elixir": async () => (await import('codemirror-lang-elixir')).elixir(),
8788
"text/x-elm": async () => (await import('@codemirror/legacy-modes/mode/elm')).elm,
8889
"text/x-erlang": async () => (await import('@codemirror/legacy-modes/mode/erlang')).erlang,
8990
"text/x-esper": async () => (await import('@codemirror/legacy-modes/mode/sql')).esper,

pnpm-lock.yaml

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)