aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
...
* Update bash tree sitter (#1917)joezak112022-04-01
|
* jsx: Add special highlighting to component namesBlaž Hrastnik2022-04-01
|
* Add JSX highlighting queriesBlaž Hrastnik2022-04-01
|
* Indentation rework (#1562)Triton1712022-03-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* add tree-sitter-gleamMichael Davis2022-03-30
|
* update tree-sitter-elixirMichael Davis2022-03-30
| | | | | | | | | | | | | | | | | | news: - tree-sitter-elixir now powers Elixir syntax highlighting on github.com - GitHub now supports code-navigation for Elixir repos via tree-sitter-elixir changes: - modules now use the `@module` highlight, which was added upstream to tree-sitter - it seems appropriate to use `@namespace` to follow helix convention - added nullary range operator (e.g. `Enum.to_list(..) == []`), a new syntax for elixir 1.14 - a fix for stab clause nodes mis-highlighting when the right hand side of the stab clause contained multiple simple expressions
* update tree-sitter-erlangMichael Davis2022-03-30
| | | | | | | | | changes: - typed fields within records which do not declare a default value are now correctly highlighted as record fields - the EEP49 'maybe' form is now parsed - fixes for highlights for 'begin' and 'after' tokens
* Fix Rescript hightlights query (#1863)Jared Ramirez2022-03-23
|
* Add syntax highlighting for Solidity (#1854)Slin Lee2022-03-22
|
* Initial basic Org markup support thanks to tree-sitter-org (#1845)zetashift2022-03-20
|
* update tree-sitter-git-commit (#1838)Michael Davis2022-03-19
| | | | | | | changes: - any text following a (scissors) is now contained in one (message) - this vastly improves performance on large verbose commits: no more slowness on huge commits
* C# highlighting improvements (#1795)Philipp Mildenberger2022-03-12
|
* Add comment textobject for surround selection and navigation (#1605)Daniel S Poulin2022-03-06
|
* Add support for HCL language (#1705)Michael Daffin2022-02-25
| | | Queries based on the neovims ones: https://github.com/nvim-treesitter/nvim-treesitter/tree/master/queries/hcl and modified for helix support.
* Add kotlin language (#1689)Michael Daffin2022-02-23
| | | | | | | | | | | | | | | | | | | | | * Add kotlin language Queries taken from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/kotlin seem to work well enough for my needs though I don't use kotlin heavily. * Update lang-support doc * Updates the kotlin highlight query to use helixs scopes * Updates the queries from PR feedback * Adds 'shallow = true' to gitmodules * Removes kotlin locals.scm * Remove blank line Co-authored-by: Ivan Tham <pickfire@riseup.net> Co-authored-by: Ivan Tham <pickfire@riseup.net>
* Allow separate styles for markup headings (#1618)Alex2022-02-21
| | | | | * update markdown highlighting to use separate heading themes * remove markdown theme scopes in ui
* add tree-sitter-erlang (#1657)Michael Davis2022-02-15
|
* feat(languages): rescript (#1616)Jared Ramirez2022-02-06
| | | | | | | | | | | * Add rescript language support * cargo xtask docgen * Add textobjects & file line ending * Fix text objects & rerun docgen * Fix textobjects queries
* epocsquadron/add tree sitter twig (#1602)Daniel S Poulin2022-02-01
| | | | | | | | * Add tree-sitter-twig grammer and highlights The gammar itself is quite basic, but is much better than nothing for working with real files consisting mostly of html. * Docgen for newly added grammar
* Add textobjects queries for php (#1601)Daniel S Poulin2022-01-30
| | | | | | | * Add textobjects queries for php * Missing EOL fix * Update generated docs after adding textobjects to php
* add tree-sitter-iex (#1576)Michael Davis2022-01-25
| | | | | | | * add tree-sitter-iex * run docgen task * fix url for iex submodule
* feat(languages): GraphQL (#1515)Jared Ramirez2022-01-21
| | | | | | | | | | | * Add Graphql language support * Fix docs gen * Add JS Graphql injection query * Updates based on PR feedback Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* tree sitter comments injections (#1527)Mathis Brossier2022-01-20
| | | | | | | | | | | * tree sitter comments injections * trailing newlines & julia fix * Update runtime/queries/julia/injections.scm Co-authored-by: Michael Davis <michael.davis@nfiindustries.com> Co-authored-by: Michael Davis <michael.davis@nfiindustries.com>
* feat(languages): Elm (#1514)Jared Ramirez2022-01-20
| | | | | | | * Add Elm language support * Fix docs gen * Updates based on PR feedback
* feat(languages): Lean experimental tree-sitter-lean (#1422)Anders Christiansen Sørby2022-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add experimental tree-sitter-lean * Run docgen * Copy over the queries from lean.nvim * Update .gitmodules Co-authored-by: Ivan Tham <pickfire@riseup.net> * Update lean highlights and run docgen * Update runtime/queries/lean/injections.scm Co-authored-by: Michael Davis <michael.davis@nfiindustries.com> * Lean: Move variable matcher to bottom * Update runtime/queries/lean/locals.scm Co-authored-by: Michael Davis <michael.davis@nfiindustries.com> Co-authored-by: Ivan Tham <pickfire@riseup.net> Co-authored-by: Michael Davis <michael.davis@nfiindustries.com>
* Update tree-sitter-php to latest upstream (#1521)Daniel S Poulin2022-01-16
| | | Brings in PHP 8.1 features, like enums, union types and the like.
* Update zig tree-sitter (#1501)voroskoi2022-01-14
| | | | | | use latest upstream version move comptime from @keyword.function to @keyword.directive use AssignOp enhance indents
* Update tree-sitter-go with generics supportBlaž Hrastnik2022-01-11
|
* add tree-sitter-git-config (#1426)Michael Davis2022-01-09
| | | | | * add tree-sitter-git-config * add todo comment for improving filetype check
* feat: add tree-sitter-makeEric Crosson2022-01-08
| | | | | | | | This commit adds syntax highlighting for GNU Make[^1] makefiles via tree-sitter-make[^2]. [^1]: https://www.gnu.org/software/make/ [^2]: https://github.com/alemuller/tree-sitter-make
* Add fixity keywords to haskell's highlights.scmOwen Shepherd2022-01-08
|
* Upgrade haskell queriesOwen Shepherd2022-01-08
|
* capture markdown link text as markup.link.text (#1456)Michael Davis2022-01-08
|
* add tree-sitter-regex (#1362)Michael Davis2022-01-06
| | | | | | | | | | | | | | | | | | | | | | | | | * add tree-sitter-regex * adapt regex highlights from upstream * inject regex into elixir sigil_r/2 and sigil_R/2 * generate lang-support docs * capture interesting nodes in character-ranges * make $.character_class captures more consistent * fix fallthrough behavior for character classes * capture pattern characters as 'string' * use latest tree-sitter-regex * set elixir regex injections as combined * add link to upstream queries * inject regex in rust into 'Regex::new' raw string literals
* Fix null and boolean constants in tree-sitter-nix highlights queries (#1428)Philipp Mildenberger2022-01-06
|
* Add textobjects and indents to c and cpp (#1293)Sebastian Neubauer2022-01-04
| | | | | | | | | | Indentation of single line statements doesn't work, i.e. for (;;)<hit enter> leads to for(;;) <cursor here> Only blocks with curly braces are indented.
* Add llvm-mir highlighting (#1398)Sebastian Neubauer2022-01-04
| | | | | | | | | | | | | | | | | * Add injection regex for more languages To support embedding them in other languages like markdown. * Add llvm-mir highlighting LLVM Machine IR is dumped as yaml files that can embed LLVM IR and Machine IR. To support this, add a llvm-mir-yaml language that uses the yaml parser, but uses different injections to highlight IR and MIR. * Update submodule with fixed multiline comments Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Add basic indentation for languages without treesitter-based indentation ↵Triton1712022-01-03
| | | | | | | rules (always use the indent of the current line for a new line). (#1341) Fix several bugs in the treesitter indentation calculation. Co-authored-by: Triton171 <triton0171@gmail.com>
* Add LLVM TableGen highlighting (#1409)Sebastian Neubauer2022-01-03
| | | | | | | Add a tree-sitter grammar and highlights for TableGen files. TableGen and its grammar are described here: https://llvm.org/docs/TableGen/index.html Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Fix markdown code-block highlightingFlakebi2022-01-01
| | | | | Markdown code blocks should be highlighted as a single block, so set injection.include-children.
* add tree-sitter-git-rebase (#1402)Michael Davis2021-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | * add submodule on tree-sitter-rebase, add to languages * add basic highlights query * inject bash in execute statements * update tree-sitter-rebase * tree-sitter-rebase->tree-sitter-git-rebase * get injection working with tree-sitter-git-commit * set scope under source.gitrebase * unset include-children on commit message injections * Revert "unset include-children on commit message injections" This reverts commit 2ecee155ea8e229651920b291062c2ee84b47944. * fix generated language docs * use rebase_command scopes from tree-sitter-git-commit
* Add tree-sitter-git-diff (#1373)Michael Davis2021-12-29
| | | | | | | | | | | | | | | | | | | | | | * add submodule on tree-sitter-git-diff * add git-diff highlights * inject git-diff into git-commit * update tree-sitter-git-commit with fix for bad diff case * add git-diff to language support docs * include-children in diff injections This ensures that children nodes of $.message are included in the injection, such as $.user or issue/pr numbers. Without this change, diffs containing '#' or '@' characters can trip up the injection and be parsed separately. See https://github.com/helix-editor/helix/pull/1373#issuecomment-1001215629 * set diff language's scope as source.diff
* Improve llvm highlighting and queries (#1388)Sebastian Neubauer2021-12-29
| | | | | | | | * Improve llvm highlighting and queries The llvm tree-sitter parser was updated to support scopes and more accurate highlighting. * Group highlight expressions better
* Add ruby indents (#1372)Stuart Hinson2021-12-27
| | | | | * Add ruby indents * Include ruby in generated docs
* highlight rebase-commands as markup.rawMichael Davis2021-12-25
|
* tree-sitter-gitcommit->tree-sitter-git-commitMichael Davis2021-12-25
|
* add commented-out diff and rebase injection queriesMichael Davis2021-12-25
|
* add gitcommit highlightsMichael Davis2021-12-25
|
* Add textobjects and indents to cmake (#1307)Sebastian Neubauer2021-12-25
|
* Typo fix in ocaml indents.toml (#1342)Stuart Hinson2021-12-24
|