[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 03d2e26108b: Fix flymake integration in lua-ts-mode (Bug#67152)
From: |
Eli Zaretskii |
Subject: |
master 03d2e26108b: Fix flymake integration in lua-ts-mode (Bug#67152) |
Date: |
Wed, 15 Nov 2023 08:01:28 -0500 (EST) |
branch: master
commit 03d2e26108b21b4a9c86a30e5552f9535f4245ac
Author: john muhl <jm@pub.pink>
Commit: Eli Zaretskii <eliz@gnu.org>
Fix flymake integration in lua-ts-mode (Bug#67152)
* lisp/progmodes/lua-ts-mode.el (lua-ts-flymake-luacheck): Use
'flymake-diag-region' to mark highlighted region.
---
lisp/progmodes/lua-ts-mode.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el
index 2193779b759..4856888344c 100644
--- a/lisp/progmodes/lua-ts-mode.el
+++ b/lisp/progmodes/lua-ts-mode.el
@@ -506,17 +506,18 @@ Calls REPORT-FN directly."
(group (0+ nonl))
eol))
nil t)
- for line = (string-to-number (match-string 1))
- for beg = (string-to-number (match-string 2))
- for end = (string-to-number (match-string 3))
+ for (beg . end) = (flymake-diag-region
+ source
+ (string-to-number (match-string
1))
+ (string-to-number (match-string
2)))
for msg = (match-string 4)
for type = (if (string-match "^(W" msg)
:warning
:error)
when (and beg end)
collect (flymake-make-diagnostic source
- (cons line beg)
- (cons line (1+
end))
+ beg
+ end
type
msg)
into diags
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 03d2e26108b: Fix flymake integration in lua-ts-mode (Bug#67152),
Eli Zaretskii <=