TreeSitter

0.22.6

An incremental parsing system for programming tools
tree-sitter/tree-sitter

What's New

v0.22.6

2024-05-05T20:58:12Z

[0.22.6] — 2024-05-05

Features

  • Improve handling of serialization buffer overflows (#3318)
  • Reverse iteration through node parents (#3214)
  • cli: Support NO_COLOR (#3299)
  • cli: Add test listing and allow users to parse a specific test number (#3067)
  • grammar: Add "inherits" field if available (#3295)

Bug Fixes

  • Correctly load field data from wasm languages
  • Improve error message when the tree-sitter field is malformed
  • Don't error out on package.json lookup errors if --no-bindings is passed (#3323)
  • cli: Keep default cc flags in build
  • cli: Properly account for multi-grammar repos when using docker to build a wasm parser (#3337)
  • generate: Don't check arbitrarily named dirs
  • generate: Take AsRef<Path> for the path parameter to avoid clones (#3322)
  • highlight: Correct signature of ts_highlighter_add_language
  • lib: Do not return field names for extras (#3330)
  • lib: Advance the lookahead end byte by 4 when there's an invalid code point (#3305)
  • rust: Update README example (#3307)
  • rust: Use unix + wasi cfg instead of not windows for fd (#3304)
  • test: Allow newlines in between test name and attribute
  • wasm: Correct childrenFromFieldXXX method signatures (#3301)
  • xtask: Always bump every crate in tandem
  • zig: Make usable as a zig dependency (#3315)

Documentation

  • Mention build command variables
  • Swap \s for \\s in query example
  • highlight: Typo (#3290)

Refactor

  • tests: Migrate remaining grammar.json tests to grammar.js (#3325)

Build System and CI

  • Add nightly rustfmt to workflow for linting (#3333)
  • Fix address sanitizer step (#3188)
  • deps: Bump cc from 1.0.92 to 1.0.94 in the cargo group (#3298)
  • deps: Bump the cargo group with 6 updates (#3313)
  • xtask: Bump build.zig.zon version when bumping versions

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

Links

Description

  • Swift Tools 5.8.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed May 08 2024 04:50:08 GMT-0900 (Hawaii-Aleutian Daylight Time)