Will Lillis
fcb38e9dcf
fix(query): keep the trailing anchor when a zero-matched quantifier is anchored
...
on both sides
In `A . Q* . B`, a zero-matched `Q` made both anchors vacuous, so `A` and `B`
were no longer required to be immediate siblings. Only relax the following
anchor on a `?`/`*` zero-skip when the skipped step has no leading anchor of
its own; otherwise the adjacency transfers through the empty run.
(cherry picked from commit dfcf73921c )
2026-07-17 19:47:19 -04:00
Will Lillis
fa6222a0d3
docs(queries): clarify behavior of first child anchor example
...
(cherry picked from commit b53a0fe622 )
2026-07-01 20:04:13 -04:00
Will Lillis
77b741bb83
docs(queries): specify anchor behavior with quantifiers and groups
...
- An anchor between two patterns is vacuous when an adjacent quantifier
matches zero
- A leading or trailing anchor on a node applies to the nearest matched node
when an adjacent optional is skipped
- An anchor at the edge of a group or alternation is not allowed.
(cherry picked from commit 133d549b70 )
2026-07-01 20:04:13 -04:00
Will Lillis
7c3d842519
docs: note zero point unbounded behavior in query functions
2026-04-30 19:19:03 -04:00
Will Lillis
9ce156713c
docs: indicate that dashes are not permitted in parser names
...
(cherry picked from commit 30d9c675a4 )
2026-03-13 20:45:45 +01:00
Will Lillis
365b1f0f91
Revert "feat: allow - in grammar names"
...
This reverts commit 7d3c321253 .
(cherry picked from commit 30ed8da439 )
2026-03-13 20:45:45 +01:00
Riley Bruins
8e87144b61
fix(query): don't add copies for quantifier steps outside alternations
...
(cherry picked from commit cf302b07d1 )
2026-03-04 11:01:39 +01:00
Jeremy Fleischman
ad7a629a1b
feat: allow - in grammar names
...
A number of grammars in the wild have this character in their name:
- https://github.com/sogaiu/tree-sitter-janet-simple/pull/7
- https://github.com/tree-sitter/tree-sitter-c-sharp/pull/408
- https://github.com/tree-sitter/tree-sitter-embedded-template/pull/45
- https://github.com/tree-sitter/tree-sitter-ql-dbscheme/pull/7
I read through https://github.com/tree-sitter/tree-sitter/pull/3700 and
https://github.com/tree-sitter/tree-sitter/issues/3637 , and it doesn't
look like there was much discussion about this name regex, so hopefully
this is an acceptable change?
(cherry picked from commit 7d3c321253 )
2026-02-09 21:48:46 -05:00
Will Lillis
fa8811f7f7
docs: include info on environment variables for fuzz command
...
(cherry picked from commit 7100767f64 )
2026-02-01 19:07:59 +01:00
kevin-hua-kraken
34602af22c
fix(playground): update query API
...
(cherry picked from commit a7d8c0cbb2 )
2025-12-23 14:18:14 +01:00
Christian Clason
cd4b6e2ef9
0.26.3
2025-12-13 13:41:03 +01:00
Marcono1234
3bd44afcaa
docs(cli): fix wrong file path for Java bindings test
...
The test is currently generated in the default (= unnamed) package.
2025-12-10 20:54:07 +02:00
Will Lillis
8b8199775f
0.26.x
...
Also bump the tree-sitter-language crate to 0.1.6
2025-12-09 17:19:25 -05:00
Will Lillis
8a3dcc6155
release 0.26.1
2025-12-08 17:05:03 -05:00
ObserverOfTime
d861e2bcd9
docs(cli): list Java & Zig binding files
2025-12-08 15:47:15 -05:00
Piotr Osiewicz
c0b1710f8a
Add containing range APIs to query cursor
...
Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-authored-by: dino <dinojoaocosta@gmail.com>
Co-authored-by: John Tur <john-tur@outlook.com>
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
Co-authored-by: dino <dinojoaocosta@gmail.com>
Co-authored-by: Will Lillis <will.lillis24@gmail.com>
2025-12-03 18:06:16 -05:00
skewb1k
882aa867eb
docs: remove manual bindings update steps for scanner
...
Since 66dab20462 , bindings automatically
detect external scanner, making the instructions for manual updating
outdated. Avoids confusion about missing commented lines in Rust
bindings.
2025-11-24 23:00:40 +01:00
Will Lillis
e92a7803eb
fix(docs): final updates before 0.26.1
...
- Indicate where xtask looks for wasi-sdk
- Indicate where `build --wasm` looks for and downloads wasi-sdk binary
to
- Mark native runtime as experimental, describe limitations
- Note ABI 13 support limitations
- Mention that `test --wasm` and `parse --wasm` require
`--features=wasm` build
2025-11-24 15:18:12 +01:00
Will Lillis
d592b16ac0
fix(docs): list dependencies on external tooling for version command
2025-11-21 19:40:14 -05:00
Antonin Delpeuch
120f74723e
docs: fix typo in the page about ABI version
...
Of course I only catch that once they are already published…
2025-11-20 09:58:07 +01:00
Antonin Delpeuch
02508d5570
Apply suggestions from code review
...
Co-authored-by: Christian Clason <ch.clason+github@icloud.com>
2025-11-20 01:07:58 -05:00
Antonin Delpeuch
42e7e9c3e7
Integrate rewording suggestions
2025-11-20 01:07:58 -05:00
Antonin Delpeuch
55b9a25c84
docs: New page about ABI versions for parser users
...
Closes #374 .
The statement about the intended backwards compatibility is purely
speculative and provided as a "straw man" to help reviewers come up with
a better description of the intended backwards compatibility.
2025-11-20 01:07:58 -05:00
Will Lillis
877782a8a4
fix(docs): update cli docs to reflect changes to various subcommand
...
arguments
2025-11-19 04:30:01 -05:00
Marcono1234
12a31536e1
fix(docs): don't show mdbook help popup when using query editor
2025-11-12 23:43:03 -05:00
Will Lillis
361287fb56
fix(cli)!: deprecate --build flag for generate command
2025-11-07 08:51:24 +01:00
Will Lillis
c7b5f89392
feat(xtask): generate JSON schema for cli TestSummary
2025-11-02 21:08:55 -05:00
Will Lillis
097c2d4f05
fix(cli): remove --emit=lib generate option
...
This also replaces the `--emit` option with an `--no-parser` flag. The
default value is false, meaning a parser is still generated by default.
2025-11-02 10:26:28 +01:00
ObserverOfTime
7d0e029e37
chore: add schema for node-types.json
2025-10-05 09:57:23 +03:00
Amaan Qureshi
341665824c
fix(lib): validate subtypes in supertype queries
2025-09-28 00:56:30 -04:00
WillLillis
422866a437
fix(docs): update more broken links
2025-09-26 16:10:29 -05:00
Amaan Qureshi
ea9c318afb
docs: update highlight crate link
2025-09-24 16:29:08 -04:00
Will Lillis
6214f95e7e
docs: correct new generate flag: "stage"->"emit"
2025-09-21 15:22:11 -04:00
Antonin Delpeuch
8873c1aeff
docs: update options for generate command
2025-09-21 01:53:40 -04:00
Amaan Qureshi
0ca8fe8c12
feat(playground): add export flag
2025-09-19 17:55:28 -04:00
John-Philip Taylor
552ab537e8
docs(cli): add docs on new version features
2025-09-19 17:52:08 -04:00
Amaan Qureshi
39a67eec61
feat: migrate to ESM
2025-09-16 02:24:11 -04:00
Amaan Qureshi
67f50b85f5
docs: document the native js runtime
2025-09-16 02:24:11 -04:00
Amaan Qureshi
46f7f860e6
docs: correct explanation about @ignore capture
2025-09-14 16:45:39 -04:00
Amaan Qureshi
2ae677162f
docs: clarify that only the whitespace character class is simplfied
2025-09-14 16:45:39 -04:00
Amaan Qureshi
4dbfb5b49a
docs: document the @ignore capture in tags
2025-09-14 06:27:27 -04:00
Amaan Qureshi
3a911d578c
docs: add more information on supertype nodes for grammars and queries
2025-09-14 06:25:35 -04:00
Amaan Qureshi
63f48afaeb
docs: explain extras in a bit more detail
2025-09-14 06:02:00 -04:00
Amaan Qureshi
06741d0d5d
fix(playground): check that languageVersion exists for compat
2025-09-13 22:12:11 -04:00
Amaan Qureshi
3c1f02a7f9
docs(playground): show toast when tree is copied
2025-09-09 03:13:35 -04:00
Amaan Qureshi
907c7bc80b
docs(playground): add version information in playground
...
Co-authored-by: Will Lillis <will.lillis24@gmail.com>
2025-09-09 03:13:35 -04:00
ObserverOfTime
b75196bb81
feat(c): rename DecodeFunction to TSDecodeFunction
...
Keep a typedef for backwards compatibility until ABI 16.
2025-09-01 03:17:44 -04:00
ObserverOfTime
47beafb836
fix(playground): account for missing button
2025-08-31 14:08:06 -04:00
Will Lillis
340df02655
docs: clarify definition of newline
2025-08-28 13:31:25 -04:00
Amaan Qureshi
99d8b58868
docs: clarify that a reserved rule must exist in the grammar
2025-08-28 13:28:37 -04:00