Expand description
Tree-sitter parsing shared by highlighting, scope context and the
structural diff. We link grammars statically since musl-static binaries
cannot dlopen. A parse failure or unknown language falls back to plain
text.
Re-exports§
pub use registry::HIGHLIGHT_NAMES;pub use registry::LangEntry;pub use registry::LanguageRegistry;pub use scope::ScopeIndex;pub use symbols::Ident;
Modules§
- intraline
- Intra-line emphasis from an AST diff (syndiff).
crate::pairingholds the textual engine we fall back to. - registry
- Maps a file path to its tree-sitter grammar, highlight configuration and tags query.
- scope
- The chain of definitions enclosing a line, from a grammar’s tags query.
- symbols
- Every identifier in a file, by line and byte range.