branch: elpa/go-mode
commit 0b5b29dca62a39f78e1bdab1da463c573db1d2e0
Author: Dominik Honnef <[email protected]>
Commit: Dominik Honnef <[email protected]>
Reformat code
---
go-mode.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/go-mode.el b/go-mode.el
index 002d479..dac2a38 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -492,9 +492,12 @@ STOP-AT-STRING is not true, over strings."
(let (pos (start-pos (point)))
(skip-chars-backward "\n\s\t")
- (if (and (save-excursion (beginning-of-line) (go-in-string-p))
(looking-back "`") (not stop-at-string))
+ (if (and (save-excursion (beginning-of-line) (go-in-string-p))
+ (looking-back "`")
+ (not stop-at-string))
(backward-char))
- (if (and (go-in-string-p) (not stop-at-string))
+ (if (and (go-in-string-p)
+ (not stop-at-string))
(go-goto-beginning-of-string-or-comment))
(if (looking-back "\\*/")
(backward-char))
@@ -502,7 +505,8 @@ STOP-AT-STRING is not true, over strings."
(go-goto-beginning-of-string-or-comment))
(setq pos (point))
(beginning-of-line)
- (if (or (looking-at (concat "^" go-label-regexp ":")) (looking-at
"^[[:space:]]*\\(case .+\\|default\\):"))
+ (if (or (looking-at (concat "^" go-label-regexp ":"))
+ (looking-at "^[[:space:]]*\\(case .+\\|default\\):"))
(end-of-line 0)
(goto-char pos))
(if (/= start-pos (point))