cjkfmt 0.0.9

Formatter for CJK text files
1
2
3
4
5
6
7
8
9
10
11
12
use thiserror::Error;

#[derive(Error, Debug)]
pub enum CjkfmtParseError {
    /// The language was generated with an incompatible version of the Tree-sitter CLI.
    /// This means misconfiguration inside the source code.
    #[error("language version mismatch")]
    LanguageError(#[from] tree_sitter::LanguageError),

    #[error("parse error: {0}")]
    ParseError(String),
}