use displaydoc::Display;
use thiserror::Error;
use crate::token;
#[derive(Display, Error, Debug)]
#[allow(clippy::module_name_repetitions)]
pub enum Error {
InvalidLine {
line_index: usize,
#[source]
source: token::Error,
},
MissingPragma {
keyword: String,
},
UnknownPragma {
line: String,
line_index: usize,
},
}
pub type Result<T> = core::result::Result<T, Error>;