aboutsummaryrefslogtreecommitdiffstats
path: root/queries
Commit message (Collapse)AuthorAgeFilesLines
...
* fix(bash): offset injection contentvanaigr2024-12-311-12/+12
|
* fix(xml): properly indent closing tagsShaun Attfield (shaun@xomen)2024-12-301-1/+1
| | | | | | | | | | | | | Confusing as it is, https://github.com/heurist/nvim-treesitter/blob/master/CONTRIBUTING.md?plain=1#L394 says: ```query @indent.dedent ; dedent children when matching this node @indent.branch ; dedent itself when matching this node ``` @indent.branch is therefore the approriate choice for de-indenting.
* fix(leo): indent } now properly dedentsRobert Horvath2024-12-301-18/+32
|
* feat(leo): highlights casting and record expressions addedRobert Horvath2024-12-301-2/+21
|
* feat(ipkg): add parser and queries (#7277)Serhii Khoma2024-12-305-0/+131
| | | Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
* feat(ruby): add injection for debugger command strings (#7480)Derek Stride2024-12-301-0/+12
|
* fix(ssh_config): highlight `"always"` (#7507)ObserverOfTime2024-12-291-0/+2
|
* feat(inko): highlight the "type" keywordYorick Peterse2024-12-241-0/+1
| | | | | This keyword will be released in 0.18.0 and deprecate the "class" keyword, which in turn will be removed in 0.19.0.
* feat(kconfig): adapt queries to parser changesAmaan Qureshi2024-12-222-12/+15
|
* fix(nu): perf issue of highlight.scm (#7475)zc he2024-12-171-2/+3
|
* fix(lua): remove duplicate `nvim_command` (#7477)phanium2024-12-171-2/+1
|
* fix(gren): adapt queries to parser changes (#7472)Mae Brooks2024-12-161-2/+2
| | | `case of` -> `when is`
* feat(zig): improve indents (#7471)Vincent Rischmann2024-12-151-0/+5
|
* feat(go): string regex highlightsRiley Bruins2024-12-151-0/+15
|
* fix(go): properly apply injections in stringsRiley Bruins2024-12-151-6/+9
|
* feat(soql): update parser and queries (#7461)Heber2024-12-121-1/+4
|
* feat(sxhkd): add bash injection for `(command)` (#7456)phanium2024-12-101-0/+3
|
* feat(circom): add parser and queriesAlexandr Martirosyan2024-12-064-0/+164
|
* fix(julia): fix incorrect documentation queryFredrik Ekre2024-12-051-2/+4
| | | | | | | | | This patch fixes an inprecise `@string.documentation` query introduced in https://github.com/nvim-treesitter/nvim-treesitter/pull/7391. The pattern `(string_literal) . (call_expression)` matches also for example `"hello"` in `foo("hello", bar())`. Similarly to https://github.com/nvim-treesitter/nvim-treesitter/pull/7436, this patch limits the pattern to top-level statements.
* feat(inko): highlight the "copy" keywordYorick Peterse2024-12-041-0/+1
| | | | This keyword is added as part of the upcoming 0.18.0 release.
* fix(julia): fix incorrect documentation queryFredrik Ekre2024-12-041-1/+5
| | | | | | | | | | | | | | This patch fixes an inprecise `@string.documentation` query introduced in https://github.com/nvim-treesitter/nvim-treesitter/pull/7391. Specifically, the pattern `(string_literal) . (identifier)` matches also for example `"hello"` in ```julia foo("hello", world) @info "hello" world ``` To fix this, this patch limits the pattern to top-level statements.
* bot(lockfile): update apex, editorconfig, elixir, ledger, markdown, ↵nvim-treesitter-bot[bot]2024-12-022-6/+0
| | | | markdown_inline, sflog, soql, sosl, styled, swift, xresources
* feat(gomod): punctuation, toolchain highlightsRiley Bruins2024-12-021-1/+11
| | | | | | | | | | | | | | | | | | | | | Reference file: ```gomod module github.com/klauspost/reedsolomon go 1.21 require github.com/klauspost/cpuid/v2 v2.2.8 require golang.org/x/sys v0.24.0 // indirect retract ( v1.12.2 // https://github.com/klauspost/reedsolomon/pull/283 v1.11.6 // https://github.com/klauspost/reedsolomon/issues/240 [v1.11.3, v1.11.5] // https://github.com/klauspost/reedsolomon/pull/238 v1.11.2 // https://github.com/klauspost/reedsolomon/pull/229 ) ```
* fix(nu): highlight all occurrences of "use"Riley Bruins2024-11-301-2/+4
|
* feat(rust): highlight "gen" and "raw" keywords (#7419)flippette2024-11-291-0/+2
|
* feat(julia): highlight interpolation operatorFredrik Ekre2024-11-291-0/+9
| | | | | | This patch adds `$` to the `@punctuation.special` capture group within `(string_interpolation)` (e.g. `"hello $name"`) and `(interpolation_expression)` (e.g. `:(hello $name)`) nodes.
* feat(inko): highlight "inline" keywordYorick Peterse2024-11-281-2/+3
| | | | | The parser added support for the "inline" keyword in a few places. This ensures a highlight is present for the keyword.
* feat(zig): add locals queries (#7401)AtomToast2024-11-281-0/+95
|
* fix(solidity): remove spurious operators in highlight queries (#7412)JoranHonig2024-11-271-2/+0
|
* fix(verilog): update queries (#7400)zhangwwpeng2024-11-241-1/+9
| | | | | 1. Add "string" as a keyword 2. Fix issue where non-type.builtin fields are captured when using (data_type) as type.builtin 3. Add generate label
* fix(julia): treat :: as operator in type contextsFredrik Ekre2024-11-231-0/+8
| | | | | | | | | | | | This patch captures `::` as `@operator` within `(unary_typed_expression)` and `(typed_expression)`. These should be the only two cases that the parser can emit when encountering `::` in the source, but as a fallback it is still captured as `@punctuation` in all other cases. The reasons for capturing `::` as an operator are i) the close relation with the other type-operators `<:` and `>:` and ii) the fact that it is treated as an operator by the Julia parser, just like `<:` and `>:`.
* fix(astro): highlight self-closing component tagsnet-solution2024-11-231-0/+4
|
* fix(julia): misc fixes to type highlightingFredrik Ekre2024-11-231-1/+10
| | | | | | | | | | | | This patch fixes two issues related to `@type` capturing (split out from https://github.com/nvim-treesitter/nvim-treesitter/pull/7392): - Capture the RHS of `<:` and `>:` as `@type` in `(unary_expression)`s similarly to what is already done for `(binary_expression)`s with these operators. - Capture children of `(curly_expression)`s inside of `(where_expression)`s as `@type` similarly how they are handled in `(parametrized_type_expression)`.
* fix(julia): fix macro identifier highlight queryFredrik Ekre2024-11-221-1/+3
| | | | | | | This fixes the macro identifier highlight query after the breaking changes in https://github.com/tree-sitter/tree-sitter-julia/pull/153. See also https://github.com/tree-sitter/tree-sitter-julia/pull/158/commits/9f2fb3b9a8c73ef0d2ec005c97f91274b492d48d.
* feat(robot): highlight query improvementsTomas Sandven2024-11-221-0/+50
| | | | | | - Highlight "ELSE" in inline_if_statement - Use @string.documentation for "Documentation" settings - Add `@spell` capture to "Documentation" settings
* fix(julia): capture docstrings in more casesFredrik Ekre2024-11-222-0/+4
| | | | | | | | | | | | | | This patch enables `@string.documentation` capturing, and markdown injection, for strings attached to `(call_expression)` and `(identifier)` nodes. For example ```julia "docs" foo(::Int, ::Float64) "docs" bar ```
* fix(julia): fix injection queriesFredrik Ekre2024-11-221-16/+16
| | | | | | | | This patch fixes the julia `(string_literal)` injection queries after the breaking changes in https://github.com/tree-sitter/tree-sitter-julia/pull/153. The queries are simplified by the fact that string content is now directly available as a separate `(content)` child node.
* feat(http): more comprehensive highlightsRiley Bruins2024-11-221-2/+14
|
* fix(jsdoc): only highlight slashes in paths (#7387)Riley Bruins2024-11-211-1/+3
| | | | Otherwise the final slash in a doc comment `*/` will also be highlighted.
* feat(python): highlight modulesOmar Valdez2024-11-211-1/+20
|
* feat(bash): highlight redirectionsOmar Valdez2024-11-211-1/+4
|
* feat(vim): highlight prepend operatorOmar Valdez2024-11-211-0/+1
|
* bot(lockfile): update desktop, editorconfig, just, nu, v, xresourcesnvim-treesitter-bot[bot]2024-11-191-4/+8
|
* feat(gdscript): add new export annotationsPrestonKnopp2024-11-181-2/+3
|
* fix(zig): begin indent at `struct_declaration`Yi Ming2024-11-151-0/+1
|
* feat(unison): inject markdown for doc blockszetashift2024-11-131-0/+3
|
* feat(unison): add fold querieszetashift2024-11-131-0/+10
|
* refactor(unison): update to latest treesitter grammarzetashift2024-11-131-21/+31
|
* feat(julia): update parser and queriesChristian Clason2024-11-112-163/+143
|
* fix(regex): more accurate highlights for named backreferencesRiley Bruins2024-11-071-1/+2
| | | | | Highlight both surrounding angle brackets, and only apply the operator highlight to the actual \k operator.