aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
* Add Support for JSONC (#9906)George "Riye" Hollister2024-03-17
| | | | | | | | | | | | * Added `jsonc` language with support for comments The `vscode-json-language-server` accepts `jsonc` as a language id. Allowing the use of comments within JSON files. * fix: Update `injdection-rejex` to be unique * fix: use includes to remove redundant queries * ci: Generate language-support docs
* Add support for hyprland config (#9899)Arthur Deierlein2024-03-17
| | | | | | | * feat: add hyprland config language * adjust indents to helix * adjust highlights to helix
* fix typo "braket" in jsx highlights (#9910)Arthur Deierlein2024-03-17
|
* treesitter: Add textobjects for native funcs and constructors (#9806)Kalpaj Chaudhari2024-03-10
| | | | | | This allows native functions and constructors to be accessible as part of goto_{next,prev}_func. Change-Id: Ia1234004e8b38e1c5871331a38fcf4f267da935e
* add linker script language (#9835)Matthew Toohey2024-03-09
|
* fix: close #9771 fix comments with `(` and `)` (#9800)Alexander Brevig2024-03-08
| | | | | | | | | * fix: close #9771 update OCaml * fix: no longer match on ( ) as the underlying grammar handles these * fix: implement excellent corrections from review * fix: module -> namespace to match theme scopes
* Add PowerShell highlighting (#9827)Chris2024-03-07
|
* Fix precedence of svelte typescript injection (#9777)Michael Davis2024-03-02
|
* Switch Nim tree-sitter queries to alaviss/tree-sitter-nim (#9722)JJ2024-02-29
|
* update languages.toml: tree-sitter-lua grammar (#9727)Brian Dorsey2024-02-28
| | | | | | | | | | | | | | | | | | * update languages.toml: tree-sitter-lua grammar repo has moved, use new URL and the rev of the latest release (v0.0.19) * update highlight queries a novice attempt to port query updates from the source repo to Helix captures and ordering * Apply suggestions from code review Co-authored-by: Michael Davis <mcarsondavis@gmail.com> --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* add fidl support (#9713)巢鹏2024-02-27
|
* Bump tree-sitter-sql (#9634)DS/Charlie2024-02-24
|
* Add Groovy grammar (#9350)Volodymyr Chernetskyi2024-02-19
| | | | | | | | | | | | | | | | | | | | | * Add Groovy grammar * Rewrite Neovim captures into Helix for Groovy * Simplify Groovy injections Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Remove Neovim's spell from Groovy highlights Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Apply suggestions to languages.toml * Escape backslash in groovy highlights.scm --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Add textobject queries for HCL (#9658)Jaakko Paju2024-02-18
| | | | | * Add textobject queries for HCL * Add to lang-support.md
* Add textobject queries for Nix (#9659)Jaakko Paju2024-02-18
| | | | | * Add textobject queries for Nix * Add to lang-support.md
* Add docker-compose language (#9661)Malpha2024-02-18
| | | | | | | | | | | | | | | * languages: add docker-compose language it uses docker-compose-langserver as lsp And yaml for syntax highlighting, indents and injections * languages: add luajit as a shebang of lua This helps to provide syntax highlighting and other lua goodies when writing luajit * book(update): run cargo xtask docgen * since #8006 full filenames uses glob
* Improve textobjects for parameter/argument for Dart (#9644)melted-brownie2024-02-17
| | | Co-authored-by: Sébastien Blondiau <sebastien.blondiau@iot-d.com>
* Add Rust fields as argument textobject (#9637)Vivek Kethineni2024-02-17
| | | | | * added field_declaration_list and field_initializer_list as parameter textobjects * removed field_declaration_listt from textobjects.scm
* Bump tree-sitter-erlang, add `*.app.src` file-type (#9627)Michael Davis2024-02-14
|
* Add Hoon (#9190)iko2024-02-12
| | | | | | | | | | | | | | | * Added Hoon * Added highlights.scm * Updated docs * Update runtime/queries/hoon/highlights.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* languages: add CEL, SpiceDB schema language (#9296)Jimmy Zelinskie2024-02-12
| | | | | | | | | | | | | | | | | * languages: add CEL language and grammar * languages: add spicedb schema language * chore: docgen * runtime/queries: refine spicedb & cel highlights Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * languages: update spicedb --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Updated Swift grammar, adding 'any' and 'await' keywords. (#9586)7ombie2024-02-12
|
* feat(languages): pkl (#9515)Matouš Dzivjak2024-02-09
| | | | | | | | * feat(languages): pkl Add [pkl](https://github.com/apple/pkl) language. Official documentation: https://pkl-lang.org/ * remove branch indent
* slint: Update treesitter parser and queries (#9551)Tobias Hunger2024-02-07
| | | | | * slint: Update treesitter parser and queries * slint: Port over suggestions from nvim review
* feat(languages): golang comments and numeric types (#9525)Matouš Dzivjak2024-02-06
|
* Update Unison tree-sitter grammar for type changes and add indent queries ↵zetashift2024-02-04
| | | | | | | | | (#9505) * Update Unison tree-sitter grammar for type changes * Add indent queries for Unison * Improve Unison indent queries
* Improve tree-sitter queries for Scala (#9475)Jaakko Paju2024-02-04
| | | | | | - Simplify function highlighting - Highlight extension methods - Textobject query (mia/maa) for class/trait constructor parameters/arguments - Textobject query (mif/maf) for Scala 3 braceless lambdas
* feat: Add `Tact` language support (#9512)Novus Nota2024-02-04
| | | Re-submitting
* Update grammars for Nushell to rev 358c4f50 (#9502)Devyn Cairns2024-02-04
|
* feat(queries): regex injection for golang (#9510)Matouš Dzivjak2024-02-03
|
* Use janet-simple grammar for Janet (#9247)sogaiu2024-01-28
| | | | | | | | | | | | | | | | | | * Use janet-simple grammar for Janet * Update book * Tweak language name and related * Rename janet-simple to janet in book * Remove spurious language section for janet * Drop quote_lit and qq_lit related highlighting --------- Co-authored-by: sogaiu <983021772@users.noreply.github.com> Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Add argument to textobject in gdscript. (#9288)Ryan Roden-Corrent2024-01-28
| | | | Currently `maa` only selects parameters in a function definition. Allow it to also select arguments inside a function call.
* highlight(scala): highlight abstract methods in traits and classes (#9340)Jaakko Paju2024-01-28
|
* Include interpolated SQL strings in Scala injection queries (#9428)Jaakko Paju2024-01-28
| | | | | | | | | | | | | * Change Scala injection queries to include SQL strings * Include block comments in comment injection * Change #match predicate to #any-of Co-authored-by: Kirawi <67773714+kirawi@users.noreply.github.com> --------- Co-authored-by: Kirawi <67773714+kirawi@users.noreply.github.com>
* Update some grammars to a commit where the license file is included (#9279)blinxen2024-01-25
| | | | | Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Update Typst Tree-Sitter grammar (#9403)Idobenhamo2024-01-23
| | | Co-authored-by: Idobenhamo <idobenhamo@users.noreply.github.com>
* Add text object queries for dart (#9411)melted-brownie2024-01-23
| | | | | | | | | | | | | | * Add text object queries for dart * Update runtime/queries/dart/textobjects.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Clean up internal capture name --------- Co-authored-by: Sébastien Blondiau <sebastien.blondiau@iot-d.com> Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Update Scala tree-sitter grammar (#9348)Jaakko Paju2024-01-22
| | | | | | | * Update Scala tree-sitter grammar * Support block comments Modify comment handling in textobjects and highlights to support new TS-scala node type 'block_comment'
* bash, make, css: highlight and indent queries improvement (#9393)woojiq2024-01-22
| | | | | | | | | | | | | | * highlights(bash): rework keywords section * Use more specified scope when possible for keywords like @keyword.repeat. * Add more keywords like "local" or "unsetenv". Limitation: * Bash doesn't allow you to have a local variable outside of a function, so maybe we need to have better queries to not highlight the local in this case. * If we name a function with a keyword (such as unset or local), it will use the highlight scope "keyword" instead of "function". * indents(css, make): add basic queries * Despite the fact that queries look simple, they improve indentation in some edge cases that helix couldn't handle correctly by default.
* Bump tree-sitter to latest master (#9317)Michael Davis2024-01-15
| | | | * query capture names now return `&str`s rather than `String`s * the `#any-of?` predicate is now supported
* update comment grammar (#9253)Kirawi2024-01-09
|
* Add textobject queries for protobuf grammar. (#9184)Ryan Roden-Corrent2024-01-08
| | | | | | | | | | | Given `message Foo {string s = 1;}` - `mat` selects `message Foo {string s = 1}` - `mit` selects `{string s = 1;}` Given `service SearchService { rpc Search(Req) returns (Resp); } - `mit` or `mat` selects `Req` or `Resp` - `mif` or `maf` selects `rpc Search(Req) returns (Resp);` - `mit` selects { rpc Search(Req) returns (Resp); }` - `mat` selects `service SearchService { rpc Search(Req) returns (Resp); }`
* Add textobject queries for Scala (#9191)Jaakko Paju2024-01-08
|
* Add HOCON language support (#9203)Jaakko Paju2024-01-08
| | | | | | | | | | | | | | | * Add HOCON language support * Remove error query Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Change include query * Fix query error --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* rust highlights: clean up constructor logic (#8957)Rose Hudson2024-01-02
| | | | | Enum variants and (tuple) structs are indistinguishable in general, so we mark any PascalCase pattern or expression as a "constructor", which covers all three.
* add smali language support (#9089)Evan Richter2023-12-19
|
* Add support for Agda (#8285)JJ2023-12-16
| | | | | | | | | | | | | | | | | | | | | | | * agda language support (wip) * improve highlights * disable agda-language-server * minor addendum to documentation * cargo xtask docgen * oh i can just do this neat * minor comment cleanup * upstream updated * imports: missed a spot --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Add alignment indent queries for binary & ternary expressions in C.Daniel Ebert2023-12-15
|
* Align arguments in a function call in C.Daniel Ebert2023-12-15
| | | | | | | | | Since the tree-sitter grammar is not very good at parsing function calls while they're being written, this is not yet super useful. However, it prevents the new `hybrid` indent heuristic from choosing these lines as a baseline, making it more robust.
* fix: typo in scm files inside runtime/queries/ (#8630)Susheel Thapa2023-12-15
|