1
0
Fork 0
mirror of https://github.com/tree-sitter/tree-sitter.git synced 2026-12-03 14:24:34 +00:00
An incremental parsing system for programming tools https://tree-sitter.github.io
  • Rust 66%
  • C 23.8%
  • TypeScript 5.8%
  • JavaScript 1.1%
  • C++ 1%
  • Other 2.2%
Find a file
Will Lillis 17a48392d4 fix(generate)!: reject eof() at the end of non-terminal extras
The parser ends a non-terminal extra without looking at the next
token, so an `eof()` that can end an extra never matched. The extra's
last state got no action for the end of input, and an input that ended
there got an error instead.

Reject such an extra while validating the extras, and name the extra
and the rule that ends with `eof()`.

BREAKING CHANGE: Public error types for `tree-sitter-generate` were
modified, and grammars where `eof()` can end a non-terminal extra no
longer generate.
2026-12-01 23:20:58 -05:00
.cargo chore: remove CARGO_WORKSPACE_DIR var 2025-09-24 16:14:08 -04:00
.github ci: bump korthout/backport-action 2026-11-21 10:45:53 +01:00
crates fix(generate)!: reject eof() at the end of non-terminal extras 2026-12-01 23:20:58 -05:00
docs fix(generate)!: reject eof() at the end of non-terminal extras 2026-12-01 23:20:58 -05:00
lib fix(lib): make nodes fragile while a finished tree competes 2026-12-01 23:20:58 -05:00
test/fixtures fix(generate)!: reject eof() at the end of non-terminal extras 2026-12-01 23:20:58 -05:00
.editorconfig style(zig): reformat files 2025-08-28 20:54:25 +03:00
.envrc fix: skip direnv flake when Nix is unavailable (#5952) 2026-09-17 12:01:52 -07:00
.gitattributes Reorganize rust crates into a flat crates directory, simplify some CI steps (#4496) 2025-06-06 14:25:37 -07:00
.gitignore refactor: rework nix flake 2025-09-09 03:03:35 -04:00
.taplo.toml fix(toml): drop align_entries = true from .taplo.toml 2026-08-29 11:10:37 +02:00
build.zig perf: compile the library with -fno-semantic-interposition 2026-11-25 19:24:17 -05:00
build.zig.zon build(deps): bump wasmtime-c-api to v48.0.10 2026-11-20 09:50:57 +01:00
Cargo.lock build(deps): bump the cargo group with 5 updates 2026-11-28 12:17:30 +01:00
Cargo.toml build: bump the MSRV to 1.92 2026-11-12 19:38:48 -05:00
clippy.toml fix(rust): ban std::fs::canonicalize 2026-10-05 02:15:45 -04:00
CMakeLists.txt perf: compile the library with -fno-semantic-interposition 2026-11-25 19:24:17 -05:00
CONTRIBUTING.md docs: improve docs for contributing to docs 2025-01-10 22:57:54 -05:00
flake.lock build(deps): bump nixpkgs from d5cc683 to 2786a2a in the nix group 2026-11-28 12:17:20 +01:00
flake.nix nix: fix the flake 2026-08-30 17:33:12 -04:00
FUNDING.json chore: add FUNDING.json 2023-11-08 00:08:07 -05:00
LICENSE chore: copy license to all packages 2025-09-11 03:12:35 -04:00
Makefile perf: compile the library with -fno-semantic-interposition 2026-11-25 19:24:17 -05:00
README.md docs: change WASM/wasm to Wasm 2025-08-21 09:56:32 +03:00
rustfmt.toml build: restore the nightly rustfmt configuration 2026-10-22 03:16:33 -04:00

tree-sitter

DOI discord matrix

Tree-sitter is a parser generator tool and an incremental parsing library. It can build a concrete syntax tree for a source file and efficiently update the syntax tree as the source file is edited. Tree-sitter aims to be:

  • General enough to parse any programming language
  • Fast enough to parse on every keystroke in a text editor
  • Robust enough to provide useful results even in the presence of syntax errors
  • Dependency-free so that the runtime library (which is written in pure C) can be embedded in any application