Commit graph

2417 commits

Author SHA1 Message Date
David Guevara
e6cd337e30
fix(bash): fix printf injection queries (#6405) 2024-04-05 10:01:19 +02:00
Christian Clason
00debd1fb1 feat(lua): add exec_lua injection for nvim tests 2024-04-05 09:20:31 +02:00
ganhaque
1b050206e4
fix(rust): indentation in multi-line tuple pattern (#6402)
* fix(rust): indentation in multi-line tuple pattern

* test(indent): rust - add test for tuple pattern indent
2024-04-04 15:12:31 +00:00
Omar Zeghouani
8f444c9fcb chore: update downstream fish highlights 2024-04-04 12:22:50 +02:00
ganhaque
5489e2150f fix(rust): indentation in multi-line for expression
Fix indentation when the for loop expression is on multiple lines

Example:

previous:

```rust
for (
    abc,
    def
) in thing.iter() {
        // ...
    }
```
new:

```rust
for (
    abc,
    def
) in thing.iter() {
    // ...
}
```
2024-04-04 09:50:27 +02:00
ganhaque
4d4b63692f fix(rust): indentation in tuple type patterns 2024-04-04 09:50:27 +02:00
Stephan Seitz
cc0e29727a highlights(cuda): add support for __managed__
See https://github.com/tree-sitter-grammars/tree-sitter-cuda/pull/68
2024-04-03 11:11:01 +02:00
Mitchell Hanberg
d31eb5442d feat(elixir): add stab_clause to folds 2024-04-01 16:49:49 -04:00
Jonas Hietala
25ed904c75
feat(djot): update queries (#6375)
- Adjust some highlights to fit context better
- Conceal inline content
- Add locals
- Add folds
2024-04-01 13:42:12 +02:00
Riley Bruins
0bfa0be5e4 fix(nix): highlight ellipsis as builtin parameter
This maintains consistency with a lot of other languages that also have
ellipses as parameter types, which we typically highlight as
`@variable.parameter.builtin`
2024-04-01 11:39:38 +02:00
Riley Bruins
3c996dc9fa feat(nix): misc. operator/punctuation highlights 2024-04-01 11:39:38 +02:00
nat-418
905fedfa28 feat(roc): add new parser tree-sitter-roc 2024-04-01 11:19:45 +02:00
nvim-treesitter-bot[bot]
1d1d92e94a bot(lockfile): update djot, snakemake, v 2024-03-31 14:32:41 +00:00
Oliver Thomas
6e0b031ebb feat(snakemake): add indentation queries 2024-03-30 12:46:43 +01:00
nvim-treesitter-bot[bot]
5127a84407 bot(lockfile): update beancount, liquid, ocaml, ocaml_interface, v, vento, wing 2024-03-30 11:16:35 +00:00
vsajko
c65413f2ac
fix(python): add staticmethod to builtin decorators 2024-03-30 01:30:13 +02:00
Hank Jackson
f84887230a
feat(liquid): add new parser tree-sitter-liquid (#6359)
(templating language)
2024-03-29 09:47:26 +01:00
Jaehwang Jung
07a404570f fix(c): don't highlight preproc_arg
`preproc_arg` is used for the body of `#define` macro definition, which
is not appropriate to highlight with `@function.macro`. In addition,
this region has an injection to C, so it will get highlights anyway.
2024-03-27 14:48:11 +01:00
Caleb White
aa8d8bc600 fix(php): capture break as keyword.repeat 2024-03-27 08:29:44 +01:00
Caleb White
ac1742436c chore(php): move keywords to top of queries 2024-03-27 08:29:44 +01:00
Caleb White
7d938c1c72 fix(php): fix use_{as,instead_of}_clause highlights 2024-03-27 08:29:44 +01:00
Caleb White
1c9a94bd60 fix(php): add missing keyword highlights, fix static keyword 2024-03-27 08:29:44 +01:00
Caleb White
3400788705 feat(php): add highlight tests 2024-03-27 08:29:44 +01:00
Christian Degnbol Madsen
839dec615a feat(julia): broadcast pipe
Add support for capturing function call after a broadcasted pipe.
Currently works for unbroadcasted pipe.
There might be a better more complicated way to do this, since this will capture the broadcasting dot as part of the `@_pipe` capture.
2024-03-26 22:57:50 -04:00
Amaan Qureshi
3d473a4d5d fix(rust): indentation in tuple struct patterns 2024-03-26 22:34:53 -04:00
Riley Bruins
7f31793159
feat(markdown): yaml, toml metadata highlights (#6360) 2024-03-26 17:19:51 +02:00
Wojciech Kulik
aa31b8d4cc fix(swift): highlights 2024-03-25 18:49:52 +01:00
datwaft
965f2e7239 style: format query 2024-03-25 10:57:51 +02:00
datwaft
7051a72755 feat(lua): add injections for vim.filetype.add 2024-03-25 10:57:51 +02:00
michaelPotter
aa6323e834 feat(bash): align substitutions with expansions
The bash manual[1] considers command and process substitutions to be
forms of expansions, so they should be highlighted the same as other
expansions. This is traditionally how they have been highlighted in the
past too.

[1] https://www.gnu.org/software/bash/manual/html_node/Shell-Expansions.html
2024-03-24 20:53:58 -04:00
Noah Bogart
2205694d43 feat: add djot support (#6326)
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2024-03-22 09:02:35 +01:00
Phạm Huy Hoàng
722617e672 refactor(format): drop extra indentation for field 2024-03-21 15:51:26 +01:00
Amaan Qureshi
c28396de30 feat(rust): improve indents 2024-03-21 06:48:53 -04:00
Tomas Sandven
cf685ce85f Add "just" parser 2024-03-21 10:32:09 +01:00
Amaan Qureshi
4d76587eec fix(rust): dedent on macro definition end 2024-03-20 19:22:23 -04:00
Levi
3686029591
fix(graphql): end indent after block 2024-03-21 00:00:44 +09:00
Omar Valdez
93a9632b63 feat(sql): highlight fields in column definition 2024-03-20 12:06:16 +01:00
Noah
03f650705c
Update Clojure highlights to be metadata aware (#6213) 2024-03-19 22:10:41 +01:00
Matthew Taylor
2014f8285e
feat: add vento support (#6261) 2024-03-18 10:00:22 +01:00
gi1242
6a2572c9ed fix(latex): Fold \iffalse..\fi comments 2024-03-17 19:46:21 -04:00
NTBBloodbath
c4e0f290d7 feat(http): switch to new parser version
fix(http): use `@variable.member` for fields

fix(http): keep the comment injection

fix(http): keep `method` capture as `@function.method`

docs(README.md): update HTTP parser maintainers list

feat(http): remove redundant captures

cleanup(http): remove unneedeed highlighting captures
2024-03-18 00:46:59 +02:00
Caleb White
143ca5ce17
feat(php): improve indents in return statements & chained methods 2024-03-16 20:50:13 -04:00
Luckas
df3e6a24ac feat(hyprlang): add bash injections 2024-03-16 20:47:03 -04:00
Riley Bruins
3c7a0e9d94 feat(rust): move pub to @keyword.modifier
Also consolidates most of the captures
2024-03-16 20:45:29 -04:00
ObserverOfTime
5b8458c5aa fix(htmldjango): update highlights 2024-03-16 14:40:59 +00:00
Jaehwang Jung
f5062ebc8d feat(verilog): @keyword.modifier for lifetime 2024-03-16 20:51:16 +08:00
Jaehwang Jung
8f5513a1f2 feat(rust,lalrpop): @attribute for lifetimes
`@keyword` is only for language-defined keywords.
2024-03-16 20:51:16 +08:00
Jaehwang Jung
5d75359a9a feat(highlights)!: remove non-keyword @type.qualifier
* blueprint: Don't specially highlight template_name_qualifier. This is
  similar to inheritance base class. Other languages don't highlight
  them specially.
* eds: `@type` for all `*Type` keys
* chatito: `@attribute` for variation
2024-03-16 20:51:16 +08:00
Jaehwang Jung
dccf31f9b1 feat(highlights)!: @keyword.storage@keyword.modifier 2024-03-16 20:51:16 +08:00
Jaehwang Jung
998b230a77 feat(highlights)!: keyword @type.qualifier@keyword.modifier 2024-03-16 20:51:16 +08:00