Crate libdiffsitter
source ·Expand description
The supporting library for diffsitter
.
This library is not particularly cohesive or well organized. It exists to support the diffsitter binary and I am open to refactoring it and organizing it better if there’s demand.
In the meantime, buyer beware.
All of the methods used to create diffsitter are here and we have attempted to keep the library at least somewhat sane and organized for our own usage.
Modules
- Utilities and definitions for config handling
- Helper functions for dealing with the terminal
- Structs and other convenience methods for handling logical concepts pertaining to diffs, such as hunks.
- Utilities for processing the ASTs provided by
tree_sitter
- Negative index vector
- Utilities for reading and parsing files with the diffsitter parser
- Utilities and modules related to rendering diff outputs.
Functions
- Create an AST vector from a path