Crate bracket_parser

Source
Expand description

A library that recognizes pairs of brackets and determines if a position is inside or outside brackets in text.

This library uses tree-sitter for parsing and provides a simple API to analyze text and determine the bracket state at the end of the input.

Re-exports§

pub use BracketState::Inside;
pub use BracketState::Outside;

Structs§

BracketParser
A parser that can analyze text to determine if positions are inside or outside brackets.

Enums§

BracketState
An enum to represent the two possible states for a position in text.

Functions§

tree_sitter_bracket_parser