aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
...
* 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.
* Update tree-sitter-haskell (#6317)Ollie Charles2023-04-12
|
* Initial Cabal language support (#6485)Ollie Charles2023-04-12
|
* Update tree-sitter-git-commit (#6692)Michael Davis2023-04-10
| | | | Trailers are now supported, for example 'Co-authored-by' or 'Signed-off-by'. Commits are also now recognized in message bodies.
* Update gleam grammar (#6641)Arnar2023-04-09
|
* Add support for Robot Framework files (#6611)karei2023-04-07
| | | | | * Add support for Robot Framework files * Run docgen
* Update Ruby Highlights (#6587)Danillo Melo2023-04-06
| | | | | | | * update ruby highlights * Updated SQL injection.scm * Move private, public, protected to builtin methods
* Add textobject queries for Julia (#6588)Clara Hobbs2023-04-06
| | | | | * Add textobjects queries for Julia * Update docs for Julia textobject queries