tags: Implement strip regex for docs processing
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
This commit is contained in:
parent
90cacca040
commit
157258d881
3 changed files with 64 additions and 16 deletions
|
|
@ -81,6 +81,12 @@ impl<'a> From<tree_sitter_highlight::Error> for Error {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<tree_sitter_tags::Error> for Error {
|
||||
fn from(error: tree_sitter_tags::Error) -> Self {
|
||||
Error::new(format!("{:?}", error))
|
||||
}
|
||||
}
|
||||
|
||||
impl From<serde_json::Error> for Error {
|
||||
fn from(error: serde_json::Error) -> Self {
|
||||
Error::new(error.to_string())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue