Need help testing emacs elixir-tree-sitter

Hi,

I鈥檓 working on bringing tree-sitter-elixir to emacs tree-sitter-lang to make support syntax highlighting. The branch that I鈥檓 working on is here. You can clone and point to the package via load-path for or use-package if you using it. :slight_smile:

If you found any issue such as syntax highlight is the wrong color, comment on this thread or comment on Emacs tree-sitter support 路 Issue #4 路 elixir-lang/tree-sitter-elixir 路 GitHub with mentioning me.

Thanks. :bowing_man:

8 Likes

Kudos for the effort! Do you have a step-by-step for Spacemacs? I suppose inserting use-package at the right place should be enough?

2 Likes

I didn鈥檛 use spacemacs in my daily life. But I can tell that it鈥檚 need to enable per major-mode via hook or enable it all. The package will know that what syntax should use base on major mode.

You can see it here for the resource about tree-sitter syntax highlight.

2 Likes

FYI, I鈥檝e been testing this locally and it鈥檚 been working well for me (I just switched to your 鈥渢reesitter-queries鈥 branch), although it does seem a little slower than I鈥檇 like, but that might be similar to this nvim treesitter issue:

4 Likes

Thanks for your help and sorry for the late reply. I would keep an eye on that issue. :slight_smile:

2 Likes

No worries. Thanks for driving this forward!

1 Like

Hi,

Sorry for disappearing for so long. I鈥檝e got a bit busy from taking care my kid.

I would like to update the PR details here:

  • Update tree-sitter-elixir submodule to latest commit.
  • Update highlight query to conform tree-sitter-hl-mode.

I鈥檝e encounter the issue on not in keyword and not sure how to solving this issue at the moment :confused: but I think the syntax highlight now looks ready.

If someone find any issue. Feel free to mention me in the PR comment or reply this thread.

Thanks. :bowing_man:

2 Likes