Commit graph

44 commits

Author SHA1 Message Date
Christian Clason
9ddd853e7e feat(diff): update parser after move 2025-10-29 19:32:05 +01:00
Christian Clason
8fecb46258 feat(julia)!: switch to maintained fork
breaking change: ABI 15, drop support for emoji identifiers
2025-10-23 10:41:53 +02:00
Christoph Sax
4968877bb2 fix(t32): update repo url
Switches the grammar repository from GitLab to GitHub.
2025-10-15 21:49:59 +02:00
Steven Xu
de003000a2 feat(tmux)!: update parser and highlights
Breaking changes:

- Node `(variable)` was renamed to `(expr_double_quotes)`.
- Node `(variable_raw)` was renamed to `(expr_single_quotes)`.
- Node `(string)` was renamed to `(str_double_quotes)`.
- Node `(raw_string)` was renamed to `(str_single_quotes)`.
- Node `(raw_string_quote)` was removed.
2025-10-10 12:53:39 +02:00
Christian Clason
b4888ed9e8 chore(gdscript): mark as unmaintained
Significant upstream breaking changes are not adapted to.
2025-10-04 10:58:16 +02:00
Mouinul Hossain
db50897909
feat(parsers): add kitty (#8129) 2025-09-28 18:04:09 -07:00
Minijackson
53819acac2 feat(snl): add parser and queries 2025-09-22 15:41:39 +02:00
Christian Clason
20fc6b1270 feat(python): revert breaking change
This reverts the update in
https://github.com/nvim-treesitter/nvim-treesitter/pull/8128 which
turned out to have further breaking consequences.

Pin the parser to the last release (tier 1) to avoid pulling in more
breaking changes.
2025-09-19 13:41:33 +02:00
purarue
7aa24acae3
feat(rifleconf): add parser and queries 2025-09-14 10:53:21 +02:00
BlockLune
cd64fd3f44
feat(wxml): add parser and queries 2025-08-29 18:30:18 +02:00
涵曦
13e3ce3bf4 feat(sproto): add parser 2025-08-12 10:24:58 +02:00
NullVoxPopuli
6b3bf164b2
feat(glimmer): add fold queries (#8020) 2025-07-21 09:40:37 +02:00
Jonas Chevalier
afe267b50e
chore(nix): update url and maintainers 2025-07-20 09:50:56 +00:00
Christian Clason
1e3b7562c2 feat(wit)!: update parser and queries 2025-07-19 15:19:50 +02:00
Christian Clason
a98e67ad40 fix(wit): update repo url 2025-07-19 15:06:34 +02:00
Riley Bruins
fba060b623
feat(pkl): add parser and queries (#8011) 2025-07-19 11:36:38 +02:00
Alan Russell
61ec748ef7
feat(groq): add parser and queries (#8008) 2025-07-18 18:04:42 +02:00
Christian Clason
1181cd9a25 feat(verilog)!: rename to systemverilog
Grammar name was changed to coincide with repository name
2025-06-24 10:07:36 +02:00
Christian Clason
13ddd4d752 feat(swift)!: update parser and queries 2025-06-24 10:07:24 +02:00
Christian Clason
6c50310371 chore(wit): mark as unmaintained 2025-06-23 20:25:00 +02:00
Igor
c29969e8ef feat(dot): fold queries 2025-06-13 09:24:28 +02:00
Christian Clason
faf63903ff fix(ipkg)!: remove parser and queries
grammar repo is 404 (user removed) and no forks exist
2025-06-06 16:59:44 +02:00
Christian Buttner
c59004f1e0
feat: add c3 (#7891) 2025-05-28 23:04:10 +02:00
Christian Clason
1043871ef4 fix(swift): mark as unmaintained
Prevent from updating parser with breaking changes until queries are
adapted.
2025-05-26 14:57:57 +02:00
Christian Clason
bdc2e01958 feat(install)!: always generate from json if possible 2025-05-12 18:43:40 +02:00
Christian Clason
cbfe8a20c7 feat(html): use gsub for mimetype lookup 2025-05-12 18:43:40 +02:00
Christian Clason
12e0246e4f fix(formatter): increase match limit
Problem: Some very long patterns were not formatted correctly.

Solution: Increase the match limit when iterating to 1024.
2025-05-12 18:43:40 +02:00
przepompownia
6fe0032640 feat(install): allow pass callback to update()
Problem: cannot run `:TSUpdate synchronously`

Solution: pass callback used after exiting jobs
(like in `install-parsers`).
2025-05-12 18:43:40 +02:00
Sebastian Lyng Johansen
02a1a0537c fix(install): early return if parser_info does not exist 2025-05-12 18:43:40 +02:00
Christian Clason
a9f34d5a76 feat(parsers): rework tiers
* stable: updates follow semver releases (todo)
* unstable: updates follow HEAD (default)
* unmaintained: no automatic updates
* unsupported: no updates, cannot be installed
2025-05-12 18:43:40 +02:00
Christian Clason
188bbf7a09 fix(ci): update to changed neovim release name 2025-05-12 18:43:40 +02:00
Christian Clason
aaf5b7fdf7 fix(install): return error code in callback 2025-05-12 18:43:40 +02:00
Christian Clason
c5a8c9d01a ci(tests): add optional workflow for generating grammars
run on PR by adding label `ci:generate` or manually
2025-05-12 18:43:40 +02:00
Christian Clason
ab230eadd4 feat(config)!: remove auto_install
use https://github.com/lewis6991/ts-install.nvim instead
2025-05-12 18:43:40 +02:00
Christian Clason
a8677385b7 feat(install)!: drop support for git
Problem: Using git for installing parsers can lead to data loss if in a
git commit buffer.

Solution: Only support downloading via curl+tar, which are installed on
all supported platforms (since Windows 10). Curl will also be required
for WASM parsers (and for `vim.net.download()`).
2025-05-12 18:43:40 +02:00
Christian Clason
214cfcf851 feat!: use tree-sitter build 2025-05-12 18:43:40 +02:00
Christian Clason
c17de56890 feat!: track parser revision in Lua
Problem: Tracking parser revision in lockfile and allowing override
through the parsers module complicates the code. In addition, only
revision changes are handled robustly, not changes to other installation
info.

Solution: Track parser revision in the parsers module directly. Reload
parser table on every install or update call. Support modifying parser
table in a `User TSUpdate` autocommand.
2025-05-12 18:43:40 +02:00
Christian Clason
5a38df5627 feat(install)!: generate from json instead of requiring node
Problem: Many parsers require node/npm to evaluate the `grammar.js`
before being able to generate a parser from it.

Solution: Generate from `grammar.json` instead, which is fully resolved.
Drops `node` and `npm` as (optional) requirements for nvim-treesitter.

Note that this requires parsers to commit the generated json iff the
grammar requires evaluation (which is currently the case for all tracked
languages).
2025-05-12 18:43:40 +02:00
nvim-treesitter-bot[bot]
8f8cf7144d bot(readme): update 2025-05-12 18:43:40 +02:00
Christian Clason
bae77b87b1 feat: add parser tiers
Tier 1: Stable
Tier 2: Core (maintained by org members)
Tier 3: Community (maintained by external contributors, to varying
degree)
Tier 4: Unsupported (lacking active maintainer or declared
experimental); skipped in lockfile update and ignored for automatic
install by default
2025-05-12 18:43:40 +02:00
Christian Clason
f0a984347c feat!: drop makefile support, norg parser
Norg install_info and queries are maintained by neorg.

All other parsers are compatible with C++11, so fix that as standard.
(Can be bumped if all supported platforms support C++14.)

Remove Makefile support, as it's no longer needed.
2025-05-12 18:43:40 +02:00
Christian Clason
cd2c826972 fix: install dependencies 2025-05-12 18:43:40 +02:00
Christian Clason
5817ff01b5 feat(locals)!: refactor locals.lua into standalone
Co-authored-by: TheLeoP <eugenio2305@hotmail.com>
2025-05-12 18:43:40 +02:00
Christian Clason
692b051b09 feat!: drop modules, general refactor and cleanup 2025-05-12 18:43:40 +02:00