diff options
Diffstat (limited to 'support/texlab/src/syntax.rs')
-rw-r--r-- | support/texlab/src/syntax.rs | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/support/texlab/src/syntax.rs b/support/texlab/src/syntax.rs index a0ae96089c..dc8761b73d 100644 --- a/support/texlab/src/syntax.rs +++ b/support/texlab/src/syntax.rs @@ -1,3 +1,22 @@ pub mod bibtex; -pub mod build_log; pub mod latex; + +#[derive(Debug, PartialEq, Eq, Clone, Copy, PartialOrd, Ord, Hash)] +pub enum BuildErrorLevel { + Error, + Warning, +} + +#[derive(Debug, PartialEq, Eq, Clone, Hash)] +pub struct BuildError { + pub relative_path: std::path::PathBuf, + pub level: BuildErrorLevel, + pub message: String, + pub hint: Option<String>, + pub line: Option<u32>, +} + +#[derive(Debug, PartialEq, Eq, Clone, Hash)] +pub struct BuildLog { + pub errors: Vec<BuildError>, +} |