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.
helix-plus/runtime/queries
Triton171 58758fee61
Indentation rework (#1562)
* 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 tree sitter comments injections (#1527) 3 years ago
c Indentation rework (#1562) 3 years ago
c-sharp C# highlighting improvements (#1795) 3 years ago
cmake Indentation rework (#1562) 3 years ago
comment Add tree-sitter-comment (#1300) 3 years ago
cpp Indentation rework (#1562) 3 years ago
css tree sitter comments injections (#1527) 3 years ago
dart Indentation rework (#1562) 3 years ago
dockerfile Support dockerfiles (#1303) 3 years ago
elixir update tree-sitter-elixir 3 years ago
elm feat(languages): Elm (#1514) 3 years ago
erlang update tree-sitter-erlang 3 years ago
fish Indentation rework (#1562) 3 years ago
git-commit update tree-sitter-git-commit (#1838) 3 years ago
git-config add tree-sitter-git-config (#1426) 3 years ago
git-diff Add tree-sitter-git-diff (#1373) 3 years ago
git-rebase add tree-sitter-git-rebase (#1402) 3 years ago
gleam add tree-sitter-gleam 3 years ago
glsl Indentation rework (#1562) 3 years ago
go Indentation rework (#1562) 3 years ago
graphql feat(languages): GraphQL (#1515) 3 years ago
haskell tree sitter comments injections (#1527) 3 years ago
hcl Indentation rework (#1562) 3 years ago
html tree sitter comments injections (#1527) 3 years ago
iex add tree-sitter-iex (#1576) 3 years ago
java tree sitter comments injections (#1527) 3 years ago
javascript Indentation rework (#1562) 3 years ago
json Indentation rework (#1562) 3 years ago
julia tree sitter comments injections (#1527) 3 years ago
kotlin Add kotlin language (#1689) 3 years ago
latex tree sitter comments injections (#1527) 3 years ago
lean feat(languages): Lean experimental tree-sitter-lean (#1422) 3 years ago
ledger Add tree-sitter-comment (#1300) 3 years ago
llvm Indentation rework (#1562) 3 years ago
llvm-mir Indentation rework (#1562) 3 years ago
llvm-mir-yaml Indentation rework (#1562) 3 years ago
lua Indentation rework (#1562) 3 years ago
make tree sitter comments injections (#1527) 3 years ago
markdown Allow separate styles for markup headings (#1618) 3 years ago
nix Indentation rework (#1562) 3 years ago
ocaml Indentation rework (#1562) 3 years ago
ocaml-interface tree sitter comments injections (#1527) 3 years ago
org Initial basic Org markup support thanks to tree-sitter-org (#1845) 3 years ago
perl Indentation rework (#1562) 3 years ago
php Indentation rework (#1562) 3 years ago
protobuf Indentation rework (#1562) 3 years ago
python Indentation rework (#1562) 3 years ago
regex add tree-sitter-regex (#1362) 3 years ago
rescript Fix Rescript hightlights query (#1863) 3 years ago
ruby Indentation rework (#1562) 3 years ago
rust Indentation rework (#1562) 3 years ago
scala Indentation rework (#1562) 3 years ago
solidity Add syntax highlighting for Solidity (#1854) 3 years ago
svelte Indentation rework (#1562) 3 years ago
tablegen Indentation rework (#1562) 3 years ago
toml tree sitter comments injections (#1527) 3 years ago
tsq Add tree-sitter-comment (#1300) 3 years ago
tsx tree sitter comments injections (#1527) 3 years ago
twig epocsquadron/add tree sitter twig (#1602) 3 years ago
typescript Indentation rework (#1562) 3 years ago
vue tree sitter comments injections (#1527) 3 years ago
wgsl tree sitter comments injections (#1527) 3 years ago
yaml Indentation rework (#1562) 3 years ago
zig Indentation rework (#1562) 3 years ago