branch: elpa/flycheck
commit 1eafe2911d50c9f58efce81ff8abea59495e1ff3
Author: Oleksandr Solovyov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
ruff uses invalid-syntax instead of SyntaxError
---
flycheck.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/flycheck.el b/flycheck.el
index 6b21bf3886d..9bd76ffe881 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -10915,7 +10915,8 @@ See URL `https://docs.astral.sh/ruff/'."
:error-patterns
((error line-start
(or "-" (file-name)) ":" line ":" (optional column ":") " "
- "SyntaxError: "
+ ;; first variant is produced by ruff < 0.8 and kept for backward
compat
+ (or "SyntaxError: " "invalid-syntax: ")
(message (one-or-more not-newline))
line-end)
(warning line-start