aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
* Add injections for GraphQL and ERB in Ruby (#10036)Joe2024-03-29
|
* fix: don't highlight colons (:) in comments (#10014)Vladyslav Karasov2024-03-27
|
* feat: Add `Ohm` language support (#9991)Novus Nota2024-03-24
| | | | | | | | | | | | | | | * feat: Add `Ohm` language support Hope this commit makes it into release :) * Update runtime/queries/ohm/highlights.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * chore: final newline --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* C++: Improve parameter highlightingMichael Davis2024-03-21
| | | | | | | | | | | | | This adds parameter highlighting for reference parameters and defaulted parameters. For example: ```cpp auto strip_prefix_only(std::string& s, Hidden_Homonym skip_hidden_homonym = {}) const -> Affixing_Result<Prefix>; ``` Previously both parameters were only highlighted as variables.
* Rust: Highlight extern crate aliasesMichael Davis2024-03-21
| | | | For example `extern crate alloc as myalloc;`
* Update tree-sitter-gleam and highlightsMichael Davis2024-03-21
| | | | | This contains a few syntax fixes. The highlights have been updated as well for reserved identifiers and escape sequences
* Update tree-sitter-erlang and highlightsMichael Davis2024-03-21
| | | | | | | | | | | | | | | | | | A few changes: * 0-arity type specs like the following previously would not have the expected 'variable.parameter' highlighting for the return type: -spec foo() -> Value when Value :: term(). * Highlight module, type and function docs as documentation comments and inject markdown into them. * Replace `#match?` predicates with `#any-of?` where possible. * Remove custom auto-pairs. Now that Erlang uses markdown for documentation, the asciidoc-style backtick-singlequote pair is no longer useful.
* Update tree-sitter-git-commitMichael Davis2024-03-21
| | | | This commit has partial support for escapes within strings.
* Add support for ember.js templates (#9902)Arthur Deierlein2024-03-19
| | | | | | | | | | | | | | | | | * feat: add support for ember .hbs (glimmer) templates * adjust highlights to helix * highlight this correctly in block statements * correctly highlight attributes * correctly highlight hash_pair * add newline to highlights.scm * refactor: use #any-of and #eq instead of #match * chore: add newline to languages.toml
* feat: add suport for helm charts (#9900)Arthur Deierlein2024-03-19
|
* Initial Ada language support (after stale) (#9908)Damian Zaręba2024-03-19
| | | | | | | | | | | | | * Adding initial support for ada language, based off #7790 PR from tomekw * More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP * Generate ada in lang-support.md using cargo xtask docgen * Update tree-sitter definitions according to comments * Remove .gpr glob from languages.toml * Fix unit in languages.toml for ada, update locals.scm to helix needs
* Enhance support for PKGBUILDS (#9909)Arthur Deierlein2024-03-19
| | | | | * enhance support for PKGBUILDS * run cargo xtask docgen
* add koka language support (#8727)Matthew Toohey2024-03-18
| | | Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
* Add initial support for SuperCollider (#9329)Phil2024-03-18
|
* Fix malformed predicates in highlighting queriesMichael Davis2024-03-18
|
* Add textobject queries for vala (#8541)Joey Hain2024-03-17
|
* Add blade support (#9513)Leonardo Eugênio2024-03-17
| | | | | | | * Add php-only language config and queries php-only is required enabling php injections like in blade templates * Add blade templates support
* Updated grammar for hurl 4 (#9775)Erasin Wang2024-03-17
|
* Extend groovy support (#9677)Benedikt Ritter2024-03-17
| | | | | | | | | | | | | | | | | | | | | | | | * Extend groovy support Use more complete parser introduced in nvm-treesitter in https://github.com/nvim-treesitter/nvim-treesitter/commit/d4dac523d2546afc266eb9b5a7986690b5319c41 * Update runtime/queries/groovy/locals.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Drop indent.scm for groovy It was copied from the tree-sitter repository but is not compatiblw with the way indent queries are implemented in Helix. * Adapt groovy highlights to helix syntax * Update documentation --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Add Support for JSONC (#9906)George "Riye" Hollister2024-03-17
| | | | | | | | | | | | * Added `jsonc` language with support for comments The `vscode-json-language-server` accepts `jsonc` as a language id. Allowing the use of comments within JSON files. * fix: Update `injdection-rejex` to be unique * fix: use includes to remove redundant queries * ci: Generate language-support docs
* Add support for hyprland config (#9899)Arthur Deierlein2024-03-17
| | | | | | | * feat: add hyprland config language * adjust indents to helix * adjust highlights to helix
* fix typo "braket" in jsx highlights (#9910)Arthur Deierlein2024-03-17
|
* treesitter: Add textobjects for native funcs and constructors (#9806)Kalpaj Chaudhari2024-03-10
| | | | | | This allows native functions and constructors to be accessible as part of goto_{next,prev}_func. Change-Id: Ia1234004e8b38e1c5871331a38fcf4f267da935e
* add linker script language (#9835)Matthew Toohey2024-03-09
|
* fix: close #9771 fix comments with `(` and `)` (#9800)Alexander Brevig2024-03-08
| | | | | | | | | * fix: close #9771 update OCaml * fix: no longer match on ( ) as the underlying grammar handles these * fix: implement excellent corrections from review * fix: module -> namespace to match theme scopes
* Add PowerShell highlighting (#9827)Chris2024-03-07
|
* Fix precedence of svelte typescript injection (#9777)Michael Davis2024-03-02
|
* Switch Nim tree-sitter queries to alaviss/tree-sitter-nim (#9722)JJ2024-02-29
|
* update languages.toml: tree-sitter-lua grammar (#9727)Brian Dorsey2024-02-28
| | | | | | | | | | | | | | | | | | * update languages.toml: tree-sitter-lua grammar repo has moved, use new URL and the rev of the latest release (v0.0.19) * update highlight queries a novice attempt to port query updates from the source repo to Helix captures and ordering * Apply suggestions from code review Co-authored-by: Michael Davis <mcarsondavis@gmail.com> --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* add fidl support (#9713)巢鹏2024-02-27
|
* Bump tree-sitter-sql (#9634)DS/Charlie2024-02-24
|
* Add Groovy grammar (#9350)Volodymyr Chernetskyi2024-02-19
| | | | | | | | | | | | | | | | | | | | | * Add Groovy grammar * Rewrite Neovim captures into Helix for Groovy * Simplify Groovy injections Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Remove Neovim's spell from Groovy highlights Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Apply suggestions to languages.toml * Escape backslash in groovy highlights.scm --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Add textobject queries for HCL (#9658)Jaakko Paju2024-02-18
| | | | | * Add textobject queries for HCL * Add to lang-support.md
* Add textobject queries for Nix (#9659)Jaakko Paju2024-02-18
| | | | | * Add textobject queries for Nix * Add to lang-support.md
* Add docker-compose language (#9661)Malpha2024-02-18
| | | | | | | | | | | | | | | * languages: add docker-compose language it uses docker-compose-langserver as lsp And yaml for syntax highlighting, indents and injections * languages: add luajit as a shebang of lua This helps to provide syntax highlighting and other lua goodies when writing luajit * book(update): run cargo xtask docgen * since #8006 full filenames uses glob
* Improve textobjects for parameter/argument for Dart (#9644)melted-brownie2024-02-17
| | | Co-authored-by: Sébastien Blondiau <sebastien.blondiau@iot-d.com>
* Add Rust fields as argument textobject (#9637)Vivek Kethineni2024-02-17
| | | | | * added field_declaration_list and field_initializer_list as parameter textobjects * removed field_declaration_listt from textobjects.scm
* 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>