Skip to content

Commit a07be7a

Browse files
committed
Fix swift-mode:beginning-of-defun
Example: @abc private func foo() { }
1 parent 0b1f29d commit a07be7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

swift-mode-lexer.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ END is the point after the token."
211211
'("#file" "#line" "column" "#function"))))
212212
t)
213213

214+
;; Supress implicit semicolon after attributes.
215+
((eq (swift-mode:token:type previous-token) 'attribute)
216+
nil)
217+
214218
;; Suppress implicit semicolon after modifiers.
215219
((member (swift-mode:token:text previous-token)
216220
'("indirect" "convenience" "dynamic" "final" "infix" "lazy"
@@ -292,10 +296,6 @@ END is the point after the token."
292296
(equal (swift-mode:token:text next-token) "else"))
293297
t)
294298

295-
;; Supress implicit semicolon after attributes.
296-
((eq (swift-mode:token:type previous-token) 'attribute)
297-
nil)
298-
299299
;; Inserts implicit semicolon before keywords that behave like method
300300
;; names.
301301
((member (swift-mode:token:text next-token)

0 commit comments

Comments
 (0)