summaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
* 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
|
* 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
|