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

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

[nongnu] elpa/go-mode 939d630 100/495: style fixes


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 939d630 100/495: style fixes
Date: Sat, 7 Aug 2021 09:04:52 -0400 (EDT)

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

    style fixes
---
 go-mode.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index 1c4ca30..ba1c8ef 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -177,13 +177,13 @@ STOP-AT-STRING is not true, over strings."
     val))
 
 (defun go-goto-opening-parenthesis (&optional char)
-  (let ((start-nesting (go-paren-level)) group)
-    (if char
-        (setq group (case char (?\] "^[") (?\} "^{") (?\) "^(")))
-      (setq group "^[{("))
+  (let ((start-nesting (go-paren-level)))
     (while (and (not (bobp))
                 (>= (go-paren-level) start-nesting))
-      (if (zerop (skip-chars-backward group))
+      (if (zerop (skip-chars-backward
+                  (if char
+                      (case char (?\] "^[") (?\} "^{") (?\) "^("))
+                    "^[{(")))
           (if (go-in-string-or-comment-p)
               (go-goto-beginning-of-string-or-comment)
             (backward-char))))))



reply via email to

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