branch: elpa/flycheck
commit 796b1b070c4b59f85b403a009237b1096c3323ac
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Fix tex-chktex error parsing with --inputfiles
Use a file-name pattern instead of hardcoded "stdin:" in the
chktex error pattern. This fixes parsing of errors from files
included via \input, and may resolve issues with chktex 1.7.9
reporting exit code 2 with no parsed errors.
Closes #2098
---
flycheck.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/flycheck.el b/flycheck.el
index fb466eac60..e5af971958 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -12853,11 +12853,13 @@ See URL `https://www.nongnu.org/chktex/'."
"--verbosity=0" "--quiet" "--inputfiles")
:standard-input t
:error-patterns
- ((warning line-start "stdin:" line ":" column ":"
+ ((warning line-start (file-name) ":" line ":" column ":"
(id (one-or-more digit)) ":" (message) line-end))
:error-filter
(lambda (errors)
- (flycheck-sanitize-errors (flycheck-increment-error-columns errors)))
+ (flycheck-sanitize-errors
+ (flycheck-remove-error-file-names
+ "stdin" (flycheck-increment-error-columns errors))))
:modes (latex-mode LaTeX-mode plain-tex-mode plain-TeX-mode))
(flycheck-define-checker tex-lacheck