We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97d86cd commit 193de68Copy full SHA for 193de68
swift-mode-beginning-of-defun.el
@@ -99,7 +99,7 @@
99
100
(defun swift-mode:is-point-before-body-of-defun ()
101
(and
102
- (= (char-after) ?{)
+ (eq (char-after) ?{)
103
(progn
104
;; Skips implicit ;
105
(forward-comment (- (point)))
@@ -176,7 +176,7 @@ Intended for internal use."
176
(catch 'swift-mode:found-defun
177
(while (not (eq (swift-mode:token:type (funcall next-token-function))
178
'outside-of-buffer))
179
- (when (and (= (char-before) ?})
+ (when (and (eq (char-before) ?})
180
(save-excursion
181
(backward-list)
182
(swift-mode:is-point-before-body-of-defun)))
0 commit comments