Commit graph

5634 commits

Author SHA1 Message Date
Christian Clason
d105f2cb7b feat(julia): update parser and queries 2024-11-11 08:40:34 +01:00
Riley Bruins
a069bb62a8
fix: formatter idempotency for nested groupings (#7345)
Currently, for something like `(((((node))))) @cap`, the formatter will
produce `((node)) @cap`, and then after another pass it will produce
`(node) @cap`. This commit makes it so that all extraneous parentheses
are removed on the first pass.
2024-11-11 11:59:21 +09:00
nvim-treesitter-bot[bot]
8e40904e49 bot(lockfile): update bash, c_sharp, cpp, earthfile, editorconfig, embedded_template, go, html, java, javascript, jsdoc, json, nix, nu, python, regex, rust, t32 2024-11-10 10:14:46 +00:00
nvim-treesitter-bot[bot]
0603b3e3d2 bot(lockfile): update desktop, earthfile, mlir, nix, nu, v, xresources 2024-11-09 06:52:07 +00:00
nvim-treesitter-bot[bot]
425b589683 bot(lockfile): update inko, nu, udev 2024-11-08 07:07:56 +00:00
Riley Bruins
eab2005cb5 fix(regex): more accurate highlights for named backreferences
Highlight both surrounding angle brackets, and only apply the operator
highlight to the actual \k operator.
2024-11-07 22:06:35 +01:00
nvim-treesitter-bot[bot]
c91122d201 bot(lockfile): update nu, runescript, superhtml, swift 2024-11-07 10:25:39 +00:00
nvim-treesitter-bot[bot]
0722f23886 bot(readme): update 2024-11-06 22:15:19 +00:00
Christian Clason
98b3825999 docs(parser): mark julia as unmaintained 2024-11-06 23:05:20 +01:00
ganhaque
ea3a37a975
fix(wgsl): indent call expression params (#7309) 2024-11-06 10:09:14 -08:00
nvim-treesitter-bot[bot]
b5cda6d731 bot(readme): update 2024-11-06 17:17:43 +00:00
David Lysenko
7c5a4632c4
feat(runescript): add parser and queries (#7305) 2024-11-06 17:09:38 +00:00
nvim-treesitter-bot[bot]
4b9a83f601 bot(lockfile): update gitattributes, nix, nu, printf, properties, tcl 2024-11-06 09:11:04 +00:00
Christian Clason
8b15ce58e4 ci(update): skip julia but for real 2024-11-06 10:00:29 +01:00
Christian Clason
f284ca27b5 ci(update): skip julia 2024-11-06 09:55:44 +01:00
Riley Bruins
0d3426a2e8 fix(wgsl): indent first parameter of function definition 2024-11-06 09:24:39 +01:00
nvim-treesitter-bot[bot]
7dc8aabe86 bot(readme): update 2024-11-05 14:34:09 +00:00
Abhishek Singh
604aa5a7c8
feat(nu): add parser and queries (#7267) 2024-11-05 15:25:42 +01:00
nvim-treesitter-bot[bot]
509d38fee8 bot(lockfile): update dhall, printf, regex, ziggy, ziggy_schema 2024-11-05 06:52:54 +00:00
nvim-treesitter-bot[bot]
dfd3207ed4 bot(readme): update 2024-11-04 08:38:00 +01:00
Riley Bruins
8fadb18430 feat: sway programming language 2024-11-04 08:36:41 +01:00
Riley Bruins
d3d4c1411c fix(cooklang): apply correct filetype
`Cooklang` files are recognized as `cook` in vim. This prevents the parser
from attaching since it is looking for `cooklang` files, so we have to
specify the `filetype` here.
2024-11-04 08:19:28 +01:00
nvim-treesitter-bot[bot]
dbf90fbfa6 bot(lockfile): update dart, devicetree, dhall, idl, ssh_config, xresources 2024-11-04 06:54:39 +00:00
Riley Bruins
01a92da438 fix(rust): highlight parameters with ref in definition 2024-11-03 11:46:40 +01:00
Riley Bruins
98b46a647e feat(regex): highlights for lazy quantifiers, \k
Highlights the "?" following .* and the \k backreference operator in a
pattern like the following: title=(?<quote>["'])(.*?)\k<quote>
2024-11-03 11:35:27 +01:00
nvim-treesitter-bot[bot]
3abe66556f bot(lockfile): update awk, nix, styled, vhdl 2024-11-03 06:52:05 +00:00
Riley Bruins
9565149634 chore: recognize busted functions
Now writing indent tests is easier because the language server
recognizes the necessary functions
2024-11-02 19:46:21 +01:00
nvim-treesitter-bot[bot]
38c12cb9ac bot(lockfile): update awk, desktop, groovy, nix, ruby, xresources 2024-11-02 06:53:00 +00:00
Shengyu Zhang
b065b59196
fix(rst): capture (adornment) node as @markup.heading (#7302)
Node alias "adornment" is used as title's overline and underline:
5120f6e592/grammar.js (L112)
2024-11-01 09:51:17 +01:00
nvim-treesitter-bot[bot]
fb2d41ec59 bot(lockfile): update cylc, superhtml 2024-11-01 06:56:16 +00:00
Elliot Fontaine
92d2501d69
feat(cylc): add parser and queries (#7225) 2024-10-31 17:56:58 +01:00
nvim-treesitter-bot[bot]
f9e9370a6f bot(lockfile): update editorconfig, gleam, heex, superhtml 2024-10-31 06:53:36 +00:00
nvim-treesitter-bot[bot]
1c111e3e8f bot(lockfile): update beancount, desktop, tlaplus, vala 2024-10-30 09:38:06 +01:00
Riley Bruins
f26b5fb2ed feat(thrift): small improvements
Less capture duplication by separating queries, include folds, move
`@variable.member` to `@property`
2024-10-30 08:39:10 +01:00
Omar Valdez
0e65a9f272 feat(bash): highlight more builtin commands
Commands:
- `.`
- `:`
- `true`
- `false`
2024-10-30 08:38:06 +01:00
Christian Clason
39016abc99 ci(update): skip gnuplot, unskip djot 2024-10-29 09:08:39 +01:00
nvim-treesitter-bot[bot]
278dd927e4 bot(lockfile): update c, fortran, koto 2024-10-29 07:46:37 +00:00
nvim-treesitter-bot[bot]
de70388626 bot(lockfile): update editorconfig, just, swift 2024-10-28 06:54:21 +00:00
Riley Bruins
00d2190683 fix(rust): regex injections, highlights
**Problem:** Rust's regex injections were not applied since the string
content is behind a `(string_content)` node, and the injections were
applied to the parent node without the `include-children` directive.

**Solution:** Apply the injections to the string content. Also highlight
them accordingly.
2024-10-27 11:51:33 +01:00
nvim-treesitter-bot[bot]
a8b7da35e5 bot(lockfile): update javascript, mlir, templ, tlaplus 2024-10-27 06:51:35 +00:00
nvim-treesitter-bot[bot]
46a6587a23 bot(readme): update 2024-10-26 08:16:29 +00:00
Riley Bruins
674100c1fc fix(formatter): simplify code, remove odd line break 2024-10-26 10:07:30 +02:00
Omar Valdez
0a9108a7e4
feat(desktop): desktop parser and queries (#7282) 2024-10-26 10:06:22 +02:00
nvim-treesitter-bot[bot]
1d7c55f0bd bot(lockfile): update superhtml 2024-10-26 06:52:20 +00:00
Omar Valdez
48fc5d1dfe feat(bash): highlight special shell variables 2024-10-25 17:16:00 +03:00
nvim-treesitter-bot[bot]
f6c5a58e3b bot(lockfile): update koto, t32 2024-10-25 06:55:05 +00:00
Christian Clason
d740b0ad92 docs(readme): mark Nvim 0.10 as required 2024-10-25 08:48:16 +02:00
nvim-treesitter-bot[bot]
377039daa2 bot(lockfile): update elixir, fortran, koto, vimdoc 2024-10-24 06:55:24 +00:00
Riley Bruins
649f6a1636
fix(rust): separate import folds from others (#7279) 2024-10-24 05:16:55 +00:00
Christian Clason
9210b9a4fa fix(predicates): remove upstreamed predicates and directives
Problem: Overriding upstreamed predicates replaces optimized versions on
Nvim 0.11.

Solution: Now that nvim-treesitter requires Nvim 0.10, simply remove the
upstreamed predicates and directives.
2024-10-23 09:38:19 +02:00