helix
helix copied to clipboard
Initial Ada language support
Tree-Sitter grammar and queries from: https://github.com/briot/tree-sitter-ada
Language server from: https://github.com/AdaCore/ada_language_server
Ada build tool: https://alire.ada.dev
:point_up: @briot ty for the grammar! Any ideas how to add the indent queries as well?
What's the compile time on this? We had to drop the old tree-sitter-ada grammar that was under the official tree-sitter org because it took too long to compile and had various issues.
@archseer I’ve no idea TBH. How can I check this?
I just did a quick check:
cargo clean ❯ time cargo build Compiling memchr v2.5.0 Compiling cc v1.0.73 Compiling regex-syntax v0.6.27 Compiling tree-sitter v0.20.9 Compiling tree-sitter-ada v0.0.1 (/home/briot/tree-sitter-ada) Compiling aho-corasick v0.7.19 Compiling regex v1.6.0 Finished dev [unoptimized + debuginfo] target(s) in 3.14s cargo build 10.27s user 1.09s system 357% cpu 3.179 total
So 3s total, when all packages have been downloaded already (and these are dependencies from tree-sitter itself, so would apply to all languages that you want to support).
I have not investigated the indentation queries (not sure that neovim, which is my editor of choice) supports them properly yet.
Emmanuel
Looking at the state counts in the parser.c, this grammar seems larger than average but not as huge as something like tree-sitter-elixir. On-disk I see the so as 327kb and the compilation time of hx -g build
of just the ada grammar seems very normal to me.
Would this PR also take into consideration .gpr file support with ada language-server running with --language-gpr
flag?
closed by https://github.com/helix-editor/helix/pull/9908