Using tree-sitter for font-lock, indentation, imenu and navigation.
This package is primarily to be used with elixir-ts-mode from where you can find all the documentation and installation instructions.
This package is compatible with and was tested against the tree-sitter grammar for HEEx found at https://github.com/phoenixframework/tree-sitter-heex.
Emacs 29.1 or above with tree-sitter support is required.
Tree-sitter starter guide: https://git.savannah.gnu.org/cgit/emacs.git/tree/admin/notes/tree-sitter/starter-guide?h=emacs-29
You can install the tree-sitter HEEx grammar by running: M-x heex-ts-install-grammar
.
To test you can run make test
which will download a batch script
from https://github.com/casouri/tree-sitter-module and compile
tree-sitter-heex.
Requirements:
Please make sure you run M-x byte-compile-file
against the updated
file(s) with an emacs version --without-tree-sitter to ensure it still
works for non tree-sitter users.