Fixes errors
This commit is contained in:
parent
4ac2146b13
commit
6eab0eeeeb
|
|
@ -314,8 +314,18 @@ pub(super) enum LineType {
|
|||
/// Transcript
|
||||
#[token("(see the transcript file for additional information)")]
|
||||
Transcript,
|
||||
/// Known Errors
|
||||
|
||||
// ! Package pdftex.def Error: File `./Images/Bestiaire/Mjonn Alpha des Brumes.jpg' not found: using draft setting. // ! LaTeX Error: \begin{tblr} on input line 587 ended by \end{longtblr}.
|
||||
// ! Undefined control sequence.
|
||||
/// A \ something was used without being defined
|
||||
#[token("! Undefined control sequence.")]
|
||||
UndefinedControlSequence,
|
||||
|
||||
/// Error Context
|
||||
#[regex(r"l\.\d+ [^\n]+", |lex| split_by(" ",lex.slice()), allow_greedy=true) ]
|
||||
#[regex(r".+\[^\]+", |lex| split_by("\\",lex.slice()), allow_greedy=true) ]
|
||||
#[regex(r" [^\n]+", |lex|{("".to_string(),lex.slice().to_string().trim_start())},allow_greedy = true)]
|
||||
// #[regex(r"\(\./[A-z/_-]+\.(gls|tex)", |lex| lex.slice().split("(").nth(1).unwrap_or("").to_string())]
|
||||
ErrorContext((String, String)),
|
||||
}
|
||||
|
|
@ -370,6 +380,7 @@ impl LineType {
|
|||
LineType::Prompt => VerboseLevel::InteractiveContext,
|
||||
LineType::Garbage => VerboseLevel::None,
|
||||
LineType::ErrorContext(_) => VerboseLevel::Error,
|
||||
LineType::UndefinedControlSequence => todo!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue