An incremental parsing system for programming tools https://tree-sitter.github.io
Find a file
Patrick Thomson cb58bc593f
Add --check flag to tree-sitter highlight.
Recently I've been pulling a lot of grammars into GitHub's highlighting backend,
replacing legacy language support with tree-sitter highlighting queries.
Our backend systems have a standard set of highlight captures we expect, very
similar to the standard tagging captures we expect. Though end-user applications
are free to choose whatever tagging nomenclature they want, I think it's nice to
include a checking stage that will help us ensure that we know whether a capture
might be recognized or not. It will also help us figure out where we need to
expand our standard set of captures (see #1539).
2023-07-15 20:49:03 -04:00
.github cicd: fix ubsan deb package installation 2023-07-13 17:44:38 +03:00
cli Add --check flag to tree-sitter highlight. 2023-07-15 20:49:03 -04:00
docs docs: improve external scanner details and fix conflicting tokens details 2023-04-16 23:46:21 +03:00
highlight Add --check flag to tree-sitter highlight. 2023-07-15 20:49:03 -04:00
lib rust: remove Copy, Clone from opaque ptr data structs 2023-07-14 00:19:23 +03:00
script script/generate-bindings - protect from using old incompatible bindgen versions 2023-07-14 00:19:23 +03:00
tags docs: update badges; fix markdown lint complains 2023-04-16 23:39:08 +03:00
test test: update C tests from upstream 2023-07-15 20:07:46 -04:00
.gitattributes Exclude huge generated files from git diff output 2023-01-14 08:58:25 +02:00
.gitignore Added Swift Package Manager entry point. 2023-07-12 11:37:04 -04:00
Cargo.lock Add --check flag to tree-sitter highlight. 2023-07-15 20:49:03 -04:00
Cargo.toml cargo: specify minimum supported Rust version 2023-04-04 03:42:55 +03:00
CONTRIBUTING.md Tweak readmes 2020-05-12 16:16:48 -07:00
LICENSE chore: fix years in the license file 2023-04-16 23:39:08 +03:00
Makefile chore: fix lib version in Makefile and set it to 0.20.10 2023-04-16 23:39:01 +03:00
Package.swift Added Swift Package Manager entry point. 2023-07-12 11:37:04 -04:00
README.md docs: update badges; fix markdown lint complains 2023-04-16 23:39:08 +03:00
tree-sitter.pc.in Add a simple Makefile-based build system. 2020-04-21 23:49:19 -04:00

tree-sitter

CICD badge DOI

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