Commit graph

6390 commits

Author SHA1 Message Date
Valentin Krasontovitsch
051d1ad753
Merge b760eef0ba into 4916d6592e 2026-04-03 11:33:06 -04:00
Christian Clason
4916d6592e fix(health): normalize rtp when checking install_dir
Problem: Windows.

Solution: vim.fs.normalize.
2026-04-03 15:11:40 +02:00
Christian Clason
234d76709e ci(tests): remove ilammy/msvc-dev-cmd
Problem: Action uses deprecated Node 20, and Windows runners have a
current msvc build tools by default.

Solution: Remove action.
2026-04-03 14:38:57 +02:00
Christian Clason
2098db61dc fix(yuck): improper use of supertypes in queries
Problem: `(ast_block)` is a supertype, of which `(symbol)` (among
others) is a subtype, which makes the final local pattern invalid.
(This was not noticed before because the parser is stuck at ABI 14
due to a missing `tree-sitter.json`.)

Solution: Fix the pattern and use supertype where appropriate.
2026-04-03 14:23:36 +02:00
Riley Bruins
81295eb0c5
feat(parsers): add jjdescription (#8625) 2026-04-03 10:43:28 +02:00
Christian Clason
539abf6da5 chore: remove redundant emmyluarc entry 2026-04-02 19:03:52 +02:00
Christian Clason
6878ae017d ci: migrate to emmyluals 2026-04-02 15:00:21 +02:00
Christian Clason
c82bf96f0a feat!: drop support for Nvim 0.11 2026-04-01 14:59:03 +02:00
Christian Clason
90cd6580e7 tests: add stable Nvim 2026-04-01 14:59:03 +02:00
nvim-treesitter-bot[bot]
7caec274fd bot(parsers): update beancount, gotmpl, heex, helm, idl, javadoc, jinja, jinja_inline, just, kotlin, liquid, mlir, ocaml, ocaml_interface, pkl, pod, rust, supercollider, typoscript 2026-03-28 07:33:46 +00:00
Riley Bruins
da8bf82a53
fix(kotlin): regex and printf injections not applying (#8613) 2026-03-27 15:22:25 -07:00
Riley Bruins
f059649bc3
fix(go): highlight rune as @character (#8612) 2026-03-27 11:37:59 -07:00
Adrian Wang
6620ae1c44
fix(install): use rename-before-unlink on all platforms
Problem: On macOS Apple Silicon, a plain unlink can leave stale code
signature metadata in the kernel cache, causing SIGKILL on next page
fault after `TSUpdate`.

Solution: Apply the rename-then-unlink strategy unconditionally instead
of only on Windows.
2026-03-23 10:32:51 +01:00
Christian Clason
8755152551
fix(parsers): track default branch for perl, pod (#8605)
Problem: non-default "release" branch tracking is broken, but the
default branch contains grammar.json.

Solution: track default `main` branch and generate parser from JSON.
2026-03-22 16:49:17 +00:00
Christian Clason
0e0db770f2 fix(parsers): don't specify default branch 2026-03-22 12:20:33 +01:00
nvim-treesitter-bot[bot]
e5f65e31a5 bot(parsers): update arduino, c3, cue, dart, fortran, fsharp, git_rebase, gleam, heex, idl, just, kotlin, ledger, mlir, nim, nu, php, php_only, powershell, proto, racket, rust, scheme, swift, vhdl 2026-03-21 07:17:33 +00:00
dependabot[bot]
877f724846 ci: bump actions/create-github-app-token in the actions group
Bumps the actions group with 1 update: [actions/create-github-app-token](https://github.com/actions/create-github-app-token).


Updates `actions/create-github-app-token` from 2 to 3
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](https://github.com/actions/create-github-app-token/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-20 17:42:48 +01:00
Christian Clason
53f6ce29df feat(zsh)!: update parser and queries 2026-03-20 10:43:21 +01:00
Christian Clason
2b50ab5ccb test: replace plenary with plentest.nvim
Problem: plenary.nvim as test runner is overkill and no longer
maintained.

Solution: Replace with a minimal fork based on Neovim API and vendored
luassert.
2026-03-17 18:20:03 +01:00
Christian Clason
2cc172c28e test(indent): we have scan_dir at home 2026-03-17 09:47:15 +01:00
Christian Clason
c9fea86a5a test(indent): drop plenary.path 2026-03-16 22:51:41 +01:00
George Harker
b9f9d692f1
feat(zsh): update parser and queries
add `;|` highlighting
2026-03-16 20:08:58 +01:00
Christian Clason
ebc3201290 fix(zsh): mark as tier 2 2026-03-16 10:03:08 +01:00
Christian Clason
2f5d4c3f3c docs(readme): clarify pre-release support policy 2026-03-14 19:46:07 +01:00
Christian Clason
f873ec2955 refactor(config): no trailing slash in installdir 2026-03-14 19:19:10 +01:00
Luca Papagni
88a217f570
Show errors on vim.system failure (#8552)
Problem: `vim.system` throws an error when `uv.spawn` fails, in
particular when `cmd` or `cwd` does not exist. This kills the coroutine,
which makes the corresponding async call hang.

Solution: Wrap `vim.system` in a function that catches any error and
returns it as `stderr` in a `SystemObj`.

Co-authored-by: Christian Clason <c.clason@uni-graz.at>
2026-03-14 19:06:38 +01:00
nvim-treesitter-bot[bot]
eb1f8e80cb bot(parsers): update c3, elixir, erlang, fsharp, gitcommit, hyprlang, kotlin, ledger, pkl, powershell, proto, ruby, scala, scheme, t32, v 2026-03-14 07:15:51 +00:00
Valentin Krasontovitsch
b760eef0ba
fix(dockerfile): correct bash syntax highlighting
when a dockerfile contains several RUN statements, the syntax
highlighting would sometimes run over and encompass dockerfile
statements after the RUN command (typically everything between the first
and last RUN statement, though the bash syntax bleed can be broken by
terminating a RUN statement with a semicolon, or a space 🙄)

we fix this by using a slightly different approach to recognizing /
grouping (the content of) RUN commands:

- instead of having shell_command at the top level of the block we
  changed, we're using run_instruction - so parsing happens per `RUN`
  statement, which is really what we want
- inseade of `injection.combined`, we use `injection.include-children`,
  which combines all the shell fragments (the text parts of a shell
  command, including after newline continuations), which is really what
  we want, as that's all the text of a RUN statement

that fixes the highlight bleed, and preserves correct highlighting for
each RUN statement.

we also add a regression test for highlighting.

Closes #6530, #6975
2026-03-12 23:30:55 +01:00
Riley Bruins
493890b87a feat(textproto): punctuation and string escape highlights 2026-03-12 09:28:44 +01:00
Christian Clason
5cb05e1b0f fix(filetype): don't register c-sharp
Language names can only contain hyphens, and dashes are normalized by
Nvim itself now.
2026-03-07 11:15:38 +01:00
nvim-treesitter-bot[bot]
4110daee15 bot(parsers): update blade, elixir, gitcommit, groovy, idl, javadoc, kotlin, liquidsoap, matlab, nu, pkl, proto, t32, vhdl 2026-03-07 09:33:18 +00:00
nvim-treesitter-bot[bot]
9fd4d998c3 bot(parsers): update wit, zsh 2026-03-07 10:32:48 +01:00
Stefan VanBuren
ebe76eb800
feat(proto): sync queries with upstream (#8554)
This adds support for [Protobuf Editions][1], and a couple other minor
fixes.

Ref: https://github.com/coder3101/tree-sitter-proto/tree/main/queries

[1]: https://protobuf.dev/editions/overview/
2026-03-06 16:12:43 +00:00
Christian Clason
1970f0d3bb feat(robot)!: update parser and queries
Breaking change: replaced `(variable_definition)` by
`(scalar_variable)`, `(list_variable)` and `(dictionary_variable)`.

Also mark queries as unmaintained.
2026-03-06 11:04:36 +01:00
elgiano
544320a9cf feat(supercollider)!: update parser and queries
parser PR: https://github.com/madskjeldgaard/tree-sitter-supercollider/pull/67

removed nodes:
control_structure, if, while, for, forby, method_call,
method_name, instance_variable_setter_call, argument_calls

added nodes:
class_def_body, !==, ===

modified nodes:
function_call now has fields receiver, name and arguments
chained method calls now appear as nested function_calls (where receiver
is another function_call)
2026-03-04 12:35:03 +01:00
Christian Clason
972f378653 fix(config): normalize default install_dir
Problem: The default `install_dir` is not normalized, leading to a
false positive checkhealth failure when comparing against the normalized
`runtimepath` directories.

Solution: Use trailing slash in default `install_dir`.
2026-03-03 19:25:06 +01:00
Riley Bruins
cb2cb74f3c feat(nickel): many more highlights 2026-03-01 22:56:47 +01:00
Ethan Rutt
995b75fd51
feat: add gql function highlighting for ecmascript injection (#8541) 2026-03-01 13:29:06 -08:00
nvim-treesitter-bot[bot]
6bc51d020a bot(parsers): update blade, kotlin, liquidsoap, lua, markdown, markdown_inline, mlir, proto, unison, vim 2026-02-28 07:10:54 +00:00
Igor
ae2081cfcd feat(ecma): variable definition from object destructure with alias 2026-02-27 09:00:07 +01:00
Tomas Sandven
b9171ede5d
feat(robot): update parser, mark as stable 2026-02-26 20:17:27 +01:00
nvim-treesitter-bot[bot]
957f86ae3f bot(parsers): update zsh 2026-02-26 11:17:02 +01:00
nvim-treesitter-bot[bot]
8ada222612 bot(parsers): update cpp, cue, fish, groovy, julia, liquid, lua, markdown, markdown_inline, mlir, pkl, powershell, query, slint, sql, swift, systemverilog, vhdl, vim 2026-02-26 10:06:44 +00:00
Christian Clason
eaa5caed2a feat(make): update parser and queries 2026-02-26 10:45:02 +01:00
Ilya Ilyinykh
0f5b204603
fix(typst): indentation for block and branch 2026-02-25 18:35:46 +01:00
Omar Valdez
67d0fd3e0a feat(xresources,desktop): mark as tier 1 2026-02-25 15:40:58 +01:00
Salomon Popp
c6d295e966
feat(nickel): update highlight queries to grammar changes 2026-02-25 10:06:48 +01:00
Ark1409
a8845121f0
fix(c_sharp): missing highlight for lambda modifier (#8526) 2026-02-24 18:25:39 -08:00
Omar Valdez
d660b7c002 feat(editorconfig)!: update parser and queries
Removed nodes:
section_name, expansion_string, wildcard_characters,
wildcard_any_characters, wildcard_single_character, unset, boolean,
spelling_language, indent_style, end_of_line, charset, unknown

Renamed nodes:
identifier -> property
negation -> "!"
path_separator -> "/"
escaped_character -> character_escape
2026-02-23 17:49:34 +01:00
nvim-treesitter-bot[bot]
dc42c209f3 bot(parsers): update c_sharp, desktop, editorconfig, fish, kitty, kotlin, mlir, proto, rescript, sql, swift, xresources 2026-02-21 07:10:10 +00:00