mirror of https://github.com/Wilfred/difftastic/
|
|
||
|---|---|---|
| .. | ||
| .github/workflows | ||
| bindings | ||
| out | ||
| playground | ||
| queries | ||
| scripts | ||
| src | ||
| test | ||
| .gitignore | ||
| .tool-versions | ||
| Cargo.toml | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| binding.gyp | ||
| grammar.js | ||
| package-lock.json | ||
| package.json | ||
| references.md | ||
README.md
Status
The grammar is still in progress, as of now, it can parse all the files in the elixir source repo. On a largish repo (around 3000 source files), it can parse 100% of the files. I haven't verified if it builds ast node with correct structure (precedence and associativity).
Install
git clone git@github.com:ananthakumaran/tree-sitter-elixir.git
npm install # ignore node-gyp error, we will fix it in the next step
make install # this should generate dynamic libraries under ~/.tree-sitter/bin/{elixir.so, elixir.so.dSYM}
Emacs
Emacs users can refer init-tree-sitter.el for a sample config.