aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
* Update tree-sitter grammar for nu (#7873)Artemiy2023-08-09
| | | | | | | | | | | * Update tree-sitter grammar for nu Change tree-sitter grammar for nushell to 'officially' maintained by nushell project https://github.com/nushell/tree-sitter-nu. Update to the latest version. Replace queries with supported * Restore injection queries for nu Restore injection.scm queries for nushell tree-sitter grammar
* Add Unison support (#7724)zetashift2023-08-08
|
* build(tree-sitter): update javascript, typescript and tsx (#7852)woojiq2023-08-07
| | | | | | | | | | | | | * build(tree-sitter): update javascript, typescript and tsx * update revision of tree-sitter parsers for these languages. * rename `?.` to `optional_chain`, introduced in tree-sitter/tree-sitter-javascript@186f2adbf790552b354a9ba712341c7d48bdbccd. * fix(highlight): change jsx queries to match latest tree-sitter Latest tree-sitter/tree-sitter-javascript@bb1f97b643b77fc1f082d621bf533b4b14cf0c3 added some breaking changes that broke highlighting. * Remove some queries with `nested_identifier`. * Remove deprecated `jsx_fragment` from indent query. * Count `</` and `/>` as a single token.
* Add tree-sitter textobjects queries for bash (#7764)Petr Gajdůšek2023-08-07
| | | | | | This implements function, (calling) argument and comment captures for use in the textobject selections in bash. This also updates the generated docs after adding the textobjects for bash.
* feat(indent): add basic java indentation queries (#7844)woojiq2023-08-07
|
* Improve wren support (#7819)Jummit2023-08-04
|
* Update t32 language queries to version 2.2.1 (#7811)Christoph Sax2023-08-04
| | | | | | | | | | | | | | Version 2.2.1 of the grammar adds extended support for HLL (C, C++,..) expressions. Quite a few node types were added, renamed or removed in the process. This change brings the highlight queries in sync with the ones found in the repository of the grammar. The highlighting tests "look" okay after updating the queries. Recently, Codeberg had some reliability issues. That is why the language is now using the mirror repository on GitLab as source instead. Co-authored-by: Christoph Sax <christoph.sax@mailbox.org>
* Bump the version of Hare's grammar (#7784)J. Brock2023-08-04
|
* Update tree-sitter-zig (#7803)voroskoi2023-08-02
|
* replace new lsp for vlang (#7760)lydiandy2023-07-30
| | | | | | | | | | | | | | | | | | | | | * fix vlang grammar fetch and build fail * update highlights.scm for v-analyzer * Update languages.toml Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/queries/v/highlights.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * update scm for new lsp * gen doc lang-support.md --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* feat: update prql parser (#7771)Matthias Q2023-07-28
|
* Add wren support (#7765)Jummit2023-07-28
|
* Tune regex highlights for usage in promptsMichael Davis2023-07-27
| | | | | | | | | | | Since regex is almost always injected into other languages, `pattern_character`s will inherit the highlight for the structure that injects them (for example `/foo/` in JavaScript or `~r/foo/` in Elixir). This removes the string highlight when used in the prompt. We also add `ERROR` node highlighting so that errors in regex syntax appear in the prompt. This resolves a TODO in the `regex_prompt` function about highlighting errors in the regex.
* fix incorrect predicate in comment highlights (#7732)Pham Huy Hoang2023-07-25
|
* switch to https://github.com/tree-sitter-perl/tree-sitter-perl (#7644)Jesse Luehrs2023-07-17
|
* Add fsharp language support (#7619)kaashyapan2023-07-15
|
* Support inlay-hints for svelteserver. (#7622)Erasin Wang2023-07-14
|
* Update Typescript, TSX and Svelte grammar, to latest tag (#6874)Jeppe Christiansen2023-07-14
| | | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Add language support for persistent library syntax (#7261)Borys Lykah2023-07-09
|
* Refactor queries for ecma based languages (#7207)Gammut2023-07-09
|
* highlight(matlab): Fix string's single-quote's color (#7493)Álan Crístoffer2023-06-30
|
* feat(toml): highlight table headers (#7441)Branch Vincent2023-06-24
|
* Replace MATLAB grammar (#7388)Álan Crístoffer2023-06-22
|
* highlight(sql): Update tree-sitter-sql to `98a7fc9` (#7387)LeoniePhiline2023-06-19
| | | | | * highlight(sql): Update tree-sitter-sql to 92018a3 * highlight(sql): Update tree-sitter-sql to 98a7fc9
* Add forth-lsp and update tree-sitter-forth (#7334)Alexander Brevig2023-06-16
| | | | | * feat: add forth lsp and update tree sitter * fix: update highlights
* Webc language support (#7290)Ivan Svoboda2023-06-13
| | | | | * feat: add webc language support * feat: add to lang-support book webc
* Add Fortran comment injections (#7305)lefp2023-06-10
|
* Fix C++ queries and update tree-sitter-cpp (#7285)Dimitri Sabadie2023-06-07
|
* Add support for language t32 (#7140)Christoph Sax2023-06-07
| | | Co-authored-by: Christoph Sax <christoph.sax@mailbox.org>
* Add support for Forth (#7256)Alexander Brevig2023-06-06
|
* Add blueprint language (#7213)Ivan Tkachuk2023-06-05
| | | | | | | * Add blueprint tree-sitter support * Add blueprint lsp support * Run cargo xtask docgen
* chore: update scala tree-sitter grammar (#7147)zetashift2023-05-30
| | | | | * chore: update scala tree-sitter grammar * Add locals.scm for Scala
* Highlight query improvements for java and typescript (#7145)Gammut2023-05-26
| | | | | * Add missing queries to java highlights * Fix generic type bracket highlights in typescript
* Update languages.toml for Nickel (#7059)Viktor Kleen2023-05-26
|
* Drop old cairo grammar, alias to rust for nowBlaž Hrastnik2023-05-26
|
* Add comment injections for Odin (#7027)lefp2023-05-12
|
* fix: update upstream tree-sitter-dockerfile (#6895)Vitalii Solodilov2023-05-12
| | | | | | | | | * fix: update upstream tree-sitter-dockerfile Fixes: #6797 * fix: review * fix: review
* Remove `tree-sitter-cabal` (#6996)Ollie Charles2023-05-09
|
* inject language based on file extension & shebang (#3970)Timothy DeHerrera2023-04-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * inject language based on file extension Nodes can now be captured with "injection.filename". If this capture contains a valid file extension known to Helix, then the content will be highlighted as that language. * inject language by shebang Nodes can now be captured with "injection.shebang". If this capture contains a valid shebang line known to Helix, then the content will be highlighted as the language the shebang calls for. * add documentation for language injection * nix: fix highlights The `@` is now highlighted properly on either side of the function arg. Also, extending the phases with `buildPhase = prev.buildPhase + ''''` is now highlighted properly. Fix highlighting of `''$` style escapes (requires tree-sitter-nix bump) Fix `inherit` highlighting. * simplify injection_for_match Split out injection pair logic into its own method to make the overall flow easier to follow. Also transform the top-level function into a method on a HighlightConfiguration. * markdown: add shebang injection query
* Change Odin grammar to `ap29600/tree-sitter-odin` (#6766)ap296002023-04-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Change Odin grammar to `ap29600/tree-sitter-odin` The previously adopted grammar, `MineBill/tree-sitter-odin`, is unmaintained and mentions my repository as an alternative source. * update queries * docgen * fix queries * Update runtime/queries/odin/highlights.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * remove `ERROR` query for `odin` * track the latest rev in `ap29600/tree-sitter-odin` * runtime/queries/odin/highlights.scm: update rune highlight class Co-authored-by: Michael Davis <mcarsondavis@gmail.com> --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Highlight sqlx's `query_scalar{,_unchecked}` macros as SQL (#6793)Cole Helbling2023-04-27
| | | | | | | * Highlight sqlx's `query_scalar{,_unchecked}` macros as SQL * Update injections.scm * fixup copy-pasta
* Avoid extra indentation on Go switches (#6817)Daniel Martí2023-04-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unlike other languages, in Go, switches themselves are not indented; it's just each case body which is indented by one level: switch foo { case "bar": baz() } As such, we shouldn't `@indent` for type_switch_statement nor expression_switch_statement, as otherwise inserted lines show up as: switch foo { // inserted with "o" case "bar": // inserted with "o" baz() } With the fix, the inserted lines are indented properly: switch foo { // inserted with "o" case "bar": // inserted with "o" baz() } I also verified that indentation on selects similarly works well. Thanks to Triton171 for helping with this fix.
* Fix go locals query for var_spec identifiersMatthew Toohey2023-04-16
|
* Add standalone language support for `just` (#6453)VuiMuich2023-04-14
| | | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Fix python highlights to support single character and alphanumeric constant ↵Farzin2023-04-14
| | | | identifier (#6751)
* Add DTD language support (#6644)Michael2023-04-12
| | | | - Added syntax highlighting for the DTD subset of the XML spec. - Included .dtd and .ent as common file extensions
* Add OpenCL tree-sitter and LSP config (#6473)lefp2023-04-12
|
* feat(languages): Support markdoc (#6432)Matouš Dzivjak2023-04-12
| | | | | | Add basic support for [markdoc](https://markdoc.dev/). For language server, see: https://github.com/markdoc-extra/markdoc-ls For tree sitter, see: https://github.com/markdoc-extra/tree-sitter-markdoc
* Highlight C/C++ escape sequences (#6724)Farzin2023-04-12
|
* tree-sitter(haskell): use quasiquoters as an injection point (#6474)Clément Delafargue2023-04-12
| | | | | Similar to tagged templates in JS, quasiquoters allow to embed external languages in haskell, so it makes sense to treat them as an injection point.