aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
* 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
|
* Add initial support for janet-lang (#9081)Phil2023-12-15
| | | | | * Add initial support for janet-lang * Use default roots for janet-lang
* Update gleam grammar and queries (#9003)Frederick Schwalbe2023-12-05
|
* upgrade tree-sitter-python (#8976)Skyler Hawthorne2023-12-04
| | | supports new syntaxes from Python 3.12
* add log tree-sitter (#8916)Tudyx2023-11-29
| | | | | * add log tree-sitter * better highlight queries
* DBML Language support (#8860)ghashy2023-11-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DBML language support * DBML language support, highlights.scm added * DBML support * Update runtime/queries/dbml/highlights.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/queries/dbml/highlights.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/queries/dbml/highlights.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * remove unnecessary block highlight * remove unnecessary line * remove index_block query --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* GN language support (#6969)Dan Field2023-11-18
| | | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Update some grammars to a commit where the license file is included (#8691)blinxen2023-11-18
|
* Add indent queries for scheme (and reuse them for common-lisp & racket). (#8720)Triton1712023-11-08
|
* highlights: add type.parameter scope to several more languages (#8718)Joey Hain2023-11-06
| | | | | | | | | | | * typescript * go * haskell * ocaml * kotlin (+ bugfix)
* Update PureScript grammar (#8712)postsolar2023-11-05
|
* replace kdl tree-sitter to fix highlighting (#8652)cgahr2023-11-03
| | | | | | | | | | | | | | | | | | | * replace kdl tree-sitter * kdl: adopt highlights for new tree-sitter * kdl: add indent queries * kdl: add textobjects * kdl: improve syntax highlighting * kdl: update lang-support * kdl: make indents more concise --------- Co-authored-by: Constantin Gahr <constantin.gahr@ipp.mpg.de>
* add highlight scope for type parameters (#8660)Joey Hain2023-11-03
| | | | | * rust: add highlight scope for type parameters * handle optional type parameters
* feat(highlights): add more comment highlights (#8564)RoloEdits2023-10-26
|
* switch to tree-sitter-ron (#8624)Gabriel Dinner-David2023-10-26
|
* Add LPF tree sitter (#8536)Frans Skarman2023-10-26
| | | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Add typst language and lsp (#7474)Alexander Brevig2023-10-26
| | | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Add rust html injection query (#8603)Ryan Mehri2023-10-26
|
* languages: add templ (#8540)rsteube2023-10-21
|
* bump tree-sitter-haskell and update queries (#8558)Ryan Mehri2023-10-17
|
* Add 'while_statement' to bash indents (#8528)Petr Gajdůšek2023-10-13
|
* Update purescript-tree-sitter grammar (#8527)NomisIV2023-10-13
|
* bump tree-sitter-sql (#8464)DS/Charlie2023-10-09
| | | | | | | * bump tree-sitter-sql * update highlights classes to helix flavour * replace lua-match with match
* add support for json5 (#8473)DS/Charlie2023-10-06
| | | | | * add json5 language * docgen
* update go highlight queries (#8399)Ben Haines2023-09-26
|
* Add Unicode support to PureScript's highlight queries (#8338)postsolar2023-09-20
|
* Update Unison highlights (#8315)zetashift2023-09-17
|
* Use Maskhjarnas tree-sitter-purescript (#8306)NomisIV2023-09-17
|
* queries/nix: align match start for language commentspacien2023-09-16
| | | | | This rule failed to override other ones because it started its matching later.
* queries/nix: add injection rule for python test scriptspacien2023-09-16
|
* add GNU assembler (gas) support #8291)Cyrill Schenkel2023-09-16
|
* scheme: Highlight abbreviationsBlaž Hrastnik2023-09-11
|
* Add additional YAML injections (#8217)Galen Abell2023-09-10
|
* re-add indent and textobject queries for perl (#7947)Jesse Luehrs2023-09-10
| | | | | | | | | * bump tree-sitter-perl version need some grammar tweaks for the indent queries to function properly * add indent queries for perl * add textobject queries for perl