aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
...
* 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
* Add Hurl Support (#6450)Erasin Wang2023-04-06
| | | | | | | | | * Add http Support It's like [vscode-restclient](https://github.com/Huachao/vscode-restclient) - https://github.com/erasin/tree-sitter-http/tree/main/tests * Add Hurl Support
* Add indents.scm for Julia (#6490)Clara Hobbs2023-03-31
| | | | | * Add indents.scm for Julia * Update documentation for new indent support
* Add injection for markdown strings (#6489)Clara Hobbs2023-03-31
|
* Update tree-sitter-git-commit, add comment textobject (#6439)Michael Davis2023-03-27
| | | | | | | The update includes a fix for comments in commit messages where there was no space separating the '#' and the comment text. The comment textobject can be useful occasionally to jump to the summary part of the commit edit message.
* Initial Nim language support (#6123)JJ2023-03-26
|
* Add language support for rego (OpenPolicyAgent) (#6415)Juan C. Müller2023-03-26
|
* Add vhdl language support (#5826)Tom Burdick2023-03-25
| | | | | | | Simple highlight query file with keywords and builtin types matching. Many VHDL types however are defined in std libraries which do not currently get matched on. This is because the grammar doesn't consider them builtin types.
* Add theme keys for (un)checked markup list items (#6434)Erasin Wang2023-03-25
|
* Add `switch_statement` to ecma indents (#6369)Thor Adam2023-03-21
|
* Add initial Smithy support (#6370)zetashift2023-03-21
|
* Add language support for Cap’n Proto format (#6325)angelodlfrtr2023-03-18
|
* Update queries for makefile (#6339)Erasin Wang2023-03-17
| | | | | - update variable and ref as paramter - add target as constant - add inject for shell_text
* Improve tree-sitter queries for vlang (#6279)Erasin Wang2023-03-15
| | | | | | - Update hightlight - add indents - add textobject - add injections
* Update gdscript highlight (#6311)Erasin Wang2023-03-15
| | | | | | - add gdscript2 type.builtin - add gdscript2 keyword 'await' - update label for more note_path - update function and parmeter
* Update Nix highlightsMichael Davis2023-03-14
| | | | | | * Switch nix grammar repository location to the new repo. The author has transferred the repository to 'nix-community'. * Capture ':' and '...' as 'punctuation.delimiter'.
* Update Erlang highlightsMichael Davis2023-03-14
| | | | | | | * Macros that start with underscore were incorrectly marked as 'comment.unused' rather than 'keyword.directive' due to an ordering issue of those two patterns. * Recognize escripts as Erlang by the shebang.
* queries/php: add missing keywords `unset` and `clone` (#6299)Ivan2023-03-14
|
* fix: C++ namespace indentationBlaž Hrastnik2023-03-11
| | | | fixes #6235
* Also highlight unchecked variants of the sqlx query methods (#6256)Maxicarlos082023-03-10
|
* queries/php: add injections for regex and sql injection (#6250)Ivan2023-03-10
|
* Improved yuck highlighting (and parser), and introduced a tag.builtin scope ↵Philipp Mildenberger2023-03-10
| | | | (#6242)
* Update highlights for golang (#6204)Erasin Wang2023-03-08
| | | | | | - update tree-sitter-go - refine keywords - set package as namespace - add label
* Update highlight for PHP (#6203)Erasin Wang2023-03-08
| | | | | - update tree-sitter-php - add basic types, operator - refine keyword
* Update highlight for ecma/js/ts (#6205)Erasin Wang2023-03-06
|
* Update queries for godot4 (#6186)Erasin Wang2023-03-05
|
* Add support for reStructuredText (#6180)Roberto Vidal2023-03-05
|
* feat(prql): add prql support (#6126)Matthias Q2023-03-03
|
* Extend the set of tags highlighted in comments (#6143)István Donkó2023-03-03
|
* Add elm treesitter textobjects (#6084)Mathieu Agopian2023-02-25
|
* feat: add nasm language (#6068)Matthew Toohey2023-02-25
|