emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 2835258 007/495: support `import foo "bar"` syntax


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 2835258 007/495: support `import foo "bar"` syntax in go-goto-imports
Date: Sat, 7 Aug 2021 09:04:32 -0400 (EDT)

branch: elpa/go-mode
commit 2835258d668f5e348b03208342c3a608ebb7c519
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    support `import foo "bar"` syntax in go-goto-imports
---
 go-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index 6935d72..c3dd637 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -474,7 +474,7 @@ declaration."
     (cond
      ((re-search-forward "^import ([^)]+)" nil t)
       (backward-char 2))
-     ((re-search-forward "\\(^import \"[^\"]+\"\n?\\)+" nil t))
+     ((re-search-forward "\\(^import \\([^\"]+ \\)?\"[^\"]+\"\n?\\)+" nil t))
      ((re-search-forward "^[[:space:]\n]*package .+?\n" nil t))
      (t
       (goto-char old-point)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]