texworks
texworks copied to clipboard
Also parse "Module" and "LaTeX3" warnings
Right now, the warning RegExp only matches warnings beginning with Package, Class, or LaTeX. However, using only core LaTeX kernel commands (without any packages), you can produce warnings starting with Module or LaTeX3:
\documentclass{article}
\directlua{luatexbase.module_warning("PACKAGE-NAME", "TEXT")}
\ExplSyntaxOn
\regex_new:N \l_my_regex
\regex_set:Nn \l_my_regex { [1-] }
\ExplSyntaxOff
\begin{document}
Hello!
\end{document}
Module PACKAGE-NAME Warning: TEXT on input line 3
LaTeX3 Warning: Invalid end-point for range '1-\]' in character class.
Reference for luatexbase.module_warning
Fixes #970.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
fc95268) 34.62% compared to head (0a33053) 34.54%. Report is 224 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #971 +/- ##
==========================================
- Coverage 34.62% 34.54% -0.09%
==========================================
Files 136 136
Lines 17041 17138 +97
==========================================
+ Hits 5901 5920 +19
- Misses 11140 11218 +78
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.