elixir-lang / tree-sitter-elixir

Elixir grammar for tree-sitter
https://elixir-lang.org/tree-sitter-elixir
Apache License 2.0
249 stars 25 forks source link

Bump to tree-sitter 0.20.7 and regenerate parser #42

Closed connorlay closed 2 years ago

connorlay commented 2 years ago

Upgrading to tree-sitter 0.20.7 causes the parser to be generated for the newest ABI version 14. This includes noticeable performance improvements when parsing query files for languages like Elixir using the new primary_state_ids field.

See https://github.com/tree-sitter/tree-sitter/pull/1589 and https://github.com/tree-sitter/tree-sitter/pull/1852 for more information on this change.

You can see the impact of this change by comparing how long it takes to execute npm test on this branch compared to master 🙂 This change should improve the initial load time of Elixir buffers in editors like Neovim and Helix that use tree-sitter-elixir for syntax highlighting.

connorlay commented 2 years ago

@the-mikedavis Done!

the-mikedavis commented 2 years ago

Thanks @connorlay!