]> git.eshelyaron.com Git - emacs.git/commitdiff
Recognize '-fdiagnostics-parseable-fixits' compilation messages
authorEshel Yaron <me@eshelyaron.com>
Thu, 9 May 2024 06:39:34 +0000 (08:39 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 9 May 2024 06:39:34 +0000 (08:39 +0200)
lisp/progmodes/compile.el

index b18eb81fee144a1fd0a32de89419a13b18f812c1..0dda610776e341ae595ee6449d327a035429a399 100644 (file)
@@ -359,6 +359,29 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
 \\([0-9]+\\)\\(?::\\([0-9]+\\)\\)?\\(?:\\([:,]\\|$\\)\\)?"
      1 2 3 (nil . 4))
 
+    (fix-it
+     ,(rx bol
+          "fix-it:\""
+          (group-n 1 (+ (not (any ?\" ?\n))))
+          "\":{"
+          (group-n 2 (+ digit))
+          ":"
+          (group-n 3 (+ digit))
+          "-"
+          (+ digit)
+          ":"
+          (+ digit)
+          "}:\""
+          (group-n 4 (* (not (any ?\" ?\n))))
+          "\""
+          eol)
+     1 2 3 0 1 (4 '(face diff-refine-added
+                    ;; TODO - click to fix:
+                    ;; mouse-face ...
+                    ;; keymap ...
+                    ;; follow-link ...
+                    )))
+
     (ruby-Test::Unit
      "^    [[ ]?\\([^ (].*\\):\\([1-9][0-9]*\\)\\(\\]\\)?:in " 1 2)