File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -821,10 +821,10 @@ move point to the end of the regexp and return non-nil."
821
821
; ; Suppress implicit semicolon around keywords that cannot start or end
822
822
; ; statements.
823
823
(member (swift-mode:token:text previous-token)
824
- '(" any" " some" " inout" " borrowing " " consuming " " sending" " in"
824
+ '(" any" " some" " inout" " sending" " in"
825
825
" where" " each" ))
826
826
(member (swift-mode:token:text next-token)
827
- '(" any" " some" " inout" " borrowing " " consuming " " sending" " throws"
827
+ '(" any" " some" " inout" " sending" " throws"
828
828
" rethrows" " in" " where" " each" ))
829
829
830
830
; ; Suppress implicit semicolon between throws and open parenthesis.
@@ -893,7 +893,7 @@ move point to the end of the regexp and return non-nil."
893
893
" mutating" " nonmutating" " optional" " override" " postfix"
894
894
" prefix" " required" " static" " unowned" " weak" " internal"
895
895
" package" " private" " public" " open" " fileprivate" " nonisolated"
896
- " distributed" " isolated" ))
896
+ " distributed" " isolated" " borrowing " " consuming " ))
897
897
nil )
898
898
899
899
; ; internal(set) private(set) public(set) open(set) fileprivate(set)
Original file line number Diff line number Diff line change @@ -835,6 +835,14 @@ class Foo {
835
835
public
836
836
deinit {
837
837
}
838
+
839
+ consuming
840
+ func foo( ) {
841
+ }
842
+
843
+ borrowing
844
+ func foo( ) {
845
+ }
838
846
}
839
847
840
848
// async let
You can’t perform that action at this time.
0 commit comments