diff --git a/crates/make/src/makepdf_structs.rs b/crates/make/src/makepdf_structs.rs index 7f802fc..3bad49a 100644 --- a/crates/make/src/makepdf_structs.rs +++ b/crates/make/src/makepdf_structs.rs @@ -314,10 +314,22 @@ pub(super) enum LineType { /// Transcript #[token("(see the transcript file for additional information)")] Transcript, - /// Error Context - #[regex(r"l\.\d+ [^\n]+", |lex| split_by(" ",lex.slice()), allow_greedy=true) ] - // #[regex(r"\(\./[A-z/_-]+\.(gls|tex)", |lex| lex.slice().split("(").nth(1).unwrap_or("").to_string())] - ErrorContext((String, String)), + // /// 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}. + // /// Unmatch begin and end environement + // #[token("! LeTex Error")] + // UnmatchedSequences, + // /// 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(" +\\[^\n]+", |lex|{("".to_string(),lex.slice().trim_start().to_string())},allow_greedy = true)] + // // #[regex(r"\(\./[A-z/_-]+\.(gls|tex)", |lex| lex.slice().split("(").nth(1).unwrap_or("").to_string())] + // ErrorContext((String, String)), } impl LineType { @@ -369,7 +381,9 @@ impl LineType { LineType::HelpGiven(_) => VerboseLevel::Context, LineType::Prompt => VerboseLevel::InteractiveContext, LineType::Garbage => VerboseLevel::None, - LineType::ErrorContext(_) => VerboseLevel::Error, + // LineType::ErrorContext(_) => VerboseLevel::Error, + // LineType::UndefinedControlSequence => VerboseLevel::Error, + // LineType::UnmatchedSequences => VerboseLevel::Error, } } }