forked from Mirrors/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58758fee61
* WIP: Rework indentation system * Add ComplexNode for context-aware indentation (including a proof of concept for assignment statements in rust) * Add switch statements to Go indents.toml (fixes the second half of issue #1523) Remove commented-out code * Migrate all existing indentation queries. Add more options to ComplexNode and use them to improve C/C++ indentation. * Add comments & replace Option<Vec<_>> with Vec<_> * Add more detailed documentation for tree-sitter indentation * Improve code style in indent.rs * Use tree-sitter queries for indentation instead of TOML config. Migrate existing indent queries. * Add documentation for the new indent queries. Change xtask docgen to look for indents.scm instead of indents.toml * Improve code style in indent.rs. Fix an issue with the rust indent query. * Move indentation test sources to separate files. Add `#not-kind-eq?`, `#same-line?` and `#not-same-line` custom predicates. Improve the rust and c indent queries. * Fix indent test. Improve rust indent queries. * Move indentation tests to integration test folder. * Improve code style in indent.rs. Reuse tree-sitter cursors for indentation queries. * Migrate HCL indent query * Replace custom loading in indent tests with a designated languages.toml * Update indent query file name for --health command. * Fix single-space formatting in indent queries. * Add explanation for unwrapping. Co-authored-by: Triton171 <triton0171@gmail.com> |
3 years ago | |
---|---|---|
.. | ||
bash | 3 years ago | |
c | 3 years ago | |
c-sharp | 3 years ago | |
cmake | 3 years ago | |
comment | 3 years ago | |
cpp | 3 years ago | |
css | 3 years ago | |
dart | 3 years ago | |
dockerfile | 3 years ago | |
elixir | 3 years ago | |
elm | 3 years ago | |
erlang | 3 years ago | |
fish | 3 years ago | |
git-commit | 3 years ago | |
git-config | 3 years ago | |
git-diff | 3 years ago | |
git-rebase | 3 years ago | |
gleam | 3 years ago | |
glsl | 3 years ago | |
go | 3 years ago | |
graphql | 3 years ago | |
haskell | 3 years ago | |
hcl | 3 years ago | |
html | 3 years ago | |
iex | 3 years ago | |
java | 3 years ago | |
javascript | 3 years ago | |
json | 3 years ago | |
julia | 3 years ago | |
kotlin | 3 years ago | |
latex | 3 years ago | |
lean | 3 years ago | |
ledger | 3 years ago | |
llvm | 3 years ago | |
llvm-mir | 3 years ago | |
llvm-mir-yaml | 3 years ago | |
lua | 3 years ago | |
make | 3 years ago | |
markdown | 3 years ago | |
nix | 3 years ago | |
ocaml | 3 years ago | |
ocaml-interface | 3 years ago | |
org | 3 years ago | |
perl | 3 years ago | |
php | 3 years ago | |
protobuf | 3 years ago | |
python | 3 years ago | |
regex | 3 years ago | |
rescript | 3 years ago | |
ruby | 3 years ago | |
rust | 3 years ago | |
scala | 3 years ago | |
solidity | 3 years ago | |
svelte | 3 years ago | |
tablegen | 3 years ago | |
toml | 3 years ago | |
tsq | 3 years ago | |
tsx | 3 years ago | |
twig | 3 years ago | |
typescript | 3 years ago | |
vue | 3 years ago | |
wgsl | 3 years ago | |
yaml | 3 years ago | |
zig | 3 years ago |