diffs-syntect
A fork of syntect maintained only for
diffs-rs.
Use upstream syntect in your own projects. This crate follows the needs of
diffs-rs and may change or stop being updated without notice.
-
Upstream base:
syntect5.3.0, revisione467084. The published upstream archive has SHA-256656b45c05d95a5704399aeef6bd0ddec7b2b3531b7c9e900abbf7c4d2190c925. -
Fork version:
diffs-syntect0.1.0. Fork versions are independent of upstream versions. -
Library name:
syntect, as upstream. Depend on it under the upstream name:[] = { = "diffs-syntect", = "0.1.0", = false, = ["default-fancy"] } -
Fancy Regex backend:
diffs-fancy-regex, the matching fork. Its types are not interchangeable with upstreamfancy-regexor upstreamsyntect.
Changes from upstream
Grammar data, rule order, compilation options, and match results are unchanged.
- Shared compiled patterns. Each regex owns its lazily compiled cell through an
Arc. A syntax set interns equal static patterns, so its grammars share compiled regexes. Cloning a regex shares its compiled cell instead of recompiling. - Line-local search scratch. The parser reuses Fancy Regex search buffers within one
parse_linecall. - Required-byte rejection. The parser skips a capture search when the line lacks a byte that every match requires.
- Scoped engine sharing (feature
shared-engines). Static rules in one syntax-set family share Fancy Regex inner engines. - Memory accounting.
ParseState::owned_heap_bytes()andScopeStack::owned_heap_bytes()report owned parser-state capacity. - Diagnostics (features
regex-census,owner-census,syntax-timing). Borrowed inspection of compiled regexes and initialization timing. Off by default.
PATCHES.md describes each change, the changed files, packaging changes, and the checks that updates need. The upstream README is in UPSTREAM_README.md.
License
MIT, as upstream. See LICENSE.txt. The upstream copyright notice is unchanged, and the fork's changes are distributed under the same license.