Skip to content

Commit 10d6ab4

Browse files
yuezhupsanford
authored andcommitted
Allow leading spaces for compilation error message
Closes: #353 [via git-merge-pr]
1 parent db8284d commit 10d6ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1825,7 +1825,7 @@ with goflymake (see URL `https://github.com/dougm/goflymake'), gocode
18251825
(boundp 'compilation-error-regexp-alist-alist))
18261826
(add-to-list 'compilation-error-regexp-alist 'go-test)
18271827
(add-to-list 'compilation-error-regexp-alist-alist
1828-
'(go-test . ("^\t+\\([^()\t\n]+\\):\\([0-9]+\\):? .*$" 1 2)) t)))
1828+
'(go-test . ("^\\s-+\\([^()\t\n]+\\):\\([0-9]+\\):? .*$" 1 2)) t)))
18291829

18301830
;;;###autoload
18311831
(add-to-list 'auto-mode-alist (cons "\\.go\\'" 'go-mode))

0 commit comments

Comments
 (0)