Add syntax highlighting and LSP (erlang_lsp) for Erlang (#7093)
This pull request implements support for the [Erlang Language](https://erlang.org/). **It adds:** * [tree-sitter-erlang](https://github.com/WhatsApp/tree-sitter-erlang) grammar highlights (Licensed under Apache-2 from WhatsApp which is compatible with Zed licensing model), folds and indents * Erlang file icon based on the [official one](https://www.erlang.org/doc/erlang-logo.png) * [erlang_ls](https://github.com/erlang-ls/erlang_ls) support Fixes https://github.com/zed-industries/zed/issues/4939, possibly a duplicate of https://github.com/zed-industries/zed/pull/7085 with more features. Suppose @wingyplus wants to join efforts here. **To complete (out of scope for this PR):** * Support for the ELP language server from WhatsApp. CC @robertoaloi * Better indentation handling, need something like `indentNextLinePattern` in VS Code **Screenshots:**      Outline:  **Release Notes:** * Added Erlang Support ([7093](https://github.com/zed-industries/zed/pull/7093)). --------- Signed-off-by: Thanabodee Charoenpiriyakij <wingyminus@gmail.com> Co-authored-by: Thanabodee Charoenpiriyakij <wingyminus@gmail.com>
This commit is contained in:
parent
3107ed847a
commit
97be0a930c
14 changed files with 398 additions and 4 deletions
|
@ -15,6 +15,7 @@ mod css;
|
|||
mod deno;
|
||||
mod elixir;
|
||||
mod elm;
|
||||
mod erlang;
|
||||
mod gleam;
|
||||
mod go;
|
||||
mod haskell;
|
||||
|
@ -113,6 +114,12 @@ pub fn init(
|
|||
),
|
||||
}
|
||||
language("gitcommit", tree_sitter_gitcommit::language(), vec![]);
|
||||
language(
|
||||
"erlang",
|
||||
tree_sitter_erlang::language(),
|
||||
vec![Arc::new(erlang::ErlangLspAdapter)],
|
||||
);
|
||||
|
||||
language(
|
||||
"gleam",
|
||||
tree_sitter_gleam::language(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue