Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tree-sitter-cli

tree-sitter62.1kMIT0.24.7TypeScript support: included

CLI for generating fast incremental parsers

parser, lexer

readme

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

changelog

Changelog

[0.23.0] - 2024-08-26

Breaking

Features

Bug Fixes

Performance

Documentation

Refactor

Testing

Build System and CI

Other

[0.22.6] — 2024-05-05

Features

Bug Fixes

Documentation

Refactor

Build System and CI

[0.22.5] — 2024-04-14

Bug Fixes

[0.22.4] — 2024-04-12

Bug Fixes

  • Fix sorting of transitions within a lex state
  • Include 2-character ranges in array-based state transitions

Build System and CI

  • Always bump at least the patch version in bump xtask

[0.22.3] — 2024-04-12

Features

Bug Fixes

Performance

Documentation

  • Add NGINX grammar

Refactor

Testing

Build System and CI

[0.22.2] — 2024-03-17

Breaking

  • cli: Add a separate build command to compile parsers

Features

Bug Fixes

Documentation

Refactor

Testing

Build System and CI

[0.22.1] — 2024-03-10

Bug Fixes

  • Cli build script behavior on release

[0.22.0] — 2024-03-10

Breaking

Features

Bug Fixes

Documentation

Refactor

Testing

Build System and CI

Other

[0.21.0] — 2024-02-21

Breaking

  • Remove the apply-all-captures flag, make last-wins precedence the default

    NOTE: This change might cause breakage in your grammar's highlight tests. Just flip the order around of the relevant queries, and keep in mind that the last query that matches will win.

Features

Bug Fixes

Documentation

Refactor

Testing

Build System and CI

Other