File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,10 @@ constant is changed.")
91
91
go-identifier-regexp
92
92
" \\ )(" ))
93
93
94
+ (defconst go--comment-start-regexp " [[:space:]]*\\ (?:/[/*]\\ )" )
95
+ (defconst go--case-regexp " \\ ([[:space:]]*case\\ ([[:space:]]\\ |$\\ )\\ )" )
96
+ (defconst go--case-or-default-regexp (concat " \\ (" go--case-regexp " \\ |" " [[:space:]]*default:\\ )" ))
97
+
94
98
(defconst go-builtins
95
99
'(" append" " cap" " close" " complex" " copy"
96
100
" delete" " imag" " len" " make" " new"
@@ -1181,8 +1185,6 @@ Return non-nil if point changed lines."
1181
1185
(setq count (if (and count (< count 0 )) -1 1 )))
1182
1186
moved))
1183
1187
1184
- (defconst go--comment-start-regexp " [[:space:]]*\\ (?:/[/*]\\ )" )
1185
-
1186
1188
(defun go--case-comment-p (indent )
1187
1189
" Return non-nil if looking at a comment attached to a case statement.
1188
1190
@@ -1238,9 +1240,6 @@ INDENT is the normal indent of this line, i.e. that of the case body."
1238
1240
; ; aligned with "case", leave it that way
1239
1241
(= (current-indentation ) (- indent tab-width)))))))
1240
1242
1241
- (defconst go--case-regexp " \\ ([[:space:]]*case\\ ([[:space:]]\\ |$\\ )\\ )" )
1242
- (defconst go--case-or-default-regexp (concat " \\ (" go--case-regexp " \\ |" " [[:space:]]*default:\\ )" ))
1243
-
1244
1243
(defun go-mode-indent-line ()
1245
1244
(interactive )
1246
1245
(let (indent
You can’t perform that action at this time.
0 commit comments