An incremental parsing system for programming tools https://tree-sitter.github.io
Find a file
Riley Bruins fa6c1471ef
fix(lib): correct escape detection for invalid anonymous nodes
The current quotation escape checker fails in the case that
there is an anonymous node that is just an escaped backslash (it thinks
the backslash escapes the quote, when really it is just an escaped
backslash itself. See the added test case for an example of this).

This commit ensures the node identification logic keeps track of the
number of backslashes seen so it can accurately determine if the
quotation is escaped or not.
2024-11-15 23:49:06 -05:00
.cargo feat: add xtasks to assist with bumping crates 2024-02-25 13:40:03 -05:00
.github docs: code-format repro commands in bug report template 2024-10-30 17:10:55 -04:00
cli fix(lib): correct escape detection for invalid anonymous nodes 2024-11-15 23:49:06 -05:00
docs fix(xtask): bring back language and example filter 2024-11-12 19:09:49 -05:00
highlight feat(rust): remove usage of deprecated functions 2024-10-31 21:58:35 -04:00
lib fix(lib): correct escape detection for invalid anonymous nodes 2024-11-15 23:49:06 -05:00
tags feat(rust): remove usage of deprecated functions 2024-10-31 21:58:35 -04:00
test/fixtures fix(lib): correct next sibling of zero width node 2024-11-12 18:17:45 -05:00
xtask fix(xtask): bring back language and example filter 2024-11-12 19:09:49 -05:00
.dockerignore Add a simple dockerfile for testing 2024-03-18 12:35:10 -07:00
.editorconfig build: add editorconfig 2024-02-11 13:03:58 +01:00
.gitattributes fix: specify eof should be lf for windows cicd 2024-01-25 20:12:36 -05:00
.gitignore build(lib): build using cmake 2024-09-07 18:38:05 -04:00
build.zig build(zig): use build root instead of cwd (#3944) 2024-11-15 12:47:01 +02:00
build.zig.zon build(deps): bump wasmtime-c-api to v26.0.1 2024-11-09 21:04:52 +01:00
Cargo.lock build(deps): bump wasmtime-c-api to v26.0.1 2024-11-09 21:04:52 +01:00
Cargo.toml build(deps): bump wasmparser in the cargo group across 1 directory 2024-10-26 23:59:05 +00:00
CONTRIBUTING.md build: remove symbolic links from repository 2024-02-12 14:16:12 +01:00
Dockerfile Add a simple dockerfile for testing 2024-03-18 12:35:10 -07:00
FUNDING.json chore: add FUNDING.json 2023-11-08 00:08:07 -05:00
LICENSE docs(license): update year 2024-03-16 01:15:22 -04:00
Makefile build: remove unicode files and script, move cliff.toml 2024-10-26 23:25:12 +00:00
Package.swift feat!: properly handle UTF-16 endianness encoding 2024-10-05 21:12:48 -04:00
README.md docs: add discord and matrix badges 2024-03-10 11:28:14 -04:00
rustfmt.toml refactor(rust): misc fixes & tidying 2024-04-11 22:35:43 -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