tags: Implement strip regex for docs processing

Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
This commit is contained in:
Max Brunsfeld 2020-03-10 10:43:23 -07:00
parent 90cacca040
commit 157258d881
3 changed files with 64 additions and 16 deletions

View file

@ -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())