Ferronistable
Oniguruma-compatible regular expressions in Rust.
Use lookbehind, backreferences and Unicode matching in native Rust. Ferroni also provides the multi-pattern scanner used by editors and highlighters. Its compatibility work stays tied to the original engine.
Used by Ferriki and Ferrolink.
- Version
- 2.9.0
- crates.io downloads
- 56,547
- Why the inside looks familiar
- Ferroni initially follows the original engine’s modules and control flow closely. A failing test can lead directly to the corresponding C implementation. An idiomatic Rust API surrounds that familiar core. Source
- A scanner for the next layer
- A highlighter repeatedly asks which of several patterns matches next. Ferroni includes that scanning model, with editor-friendly text offsets. Ferriki uses it underneath its TextMate tokenizer. Source