File tree 4 files changed +9
-4
lines changed
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ Return nil otherwise."
524
524
" import" " init" " inout" " internal" " let" " open" " operator" " package"
525
525
" private" " protocol" " public" " any" " some" " static" " struct" " subscript"
526
526
" typealias" " var" " actor" " nonisolated" " isolated" " distributed"
527
- " borrowing" " consuming" " macro" )
527
+ " borrowing" " consuming" " sending " " macro" )
528
528
" Keywords used in declarations." )
529
529
530
530
(defconst swift-mode:statement-keywords
Original file line number Diff line number Diff line change @@ -610,10 +610,10 @@ return non-nil."
610
610
; ; Suppress implicit semicolon around keywords that cannot start or end
611
611
; ; statements.
612
612
(member (swift-mode:token:text previous-token)
613
- '(" any" " some" " inout" " borrowing" " consuming" " in " " where "
614
- " isolated" " each" ))
613
+ '(" any" " some" " inout" " borrowing" " consuming" " sending " " in "
614
+ " where " " isolated" " each" ))
615
615
(member (swift-mode:token:text next-token)
616
- '(" any" " some" " inout" " borrowing" " consuming" " throws"
616
+ '(" any" " some" " inout" " borrowing" " consuming" " sending " " throws"
617
617
" rethrows" " in" " where" " isolated" " each" ))
618
618
619
619
; ; Suppress implicit semicolon between throws and open parenthesis.
Original file line number Diff line number Diff line change @@ -390,12 +390,14 @@ private
390
390
z,
391
391
w:
392
392
consuming
393
+ sending
393
394
Int
394
395
...
395
396
)
396
397
async
397
398
throws
398
399
->
400
+ sending
399
401
[ A ]
400
402
where
401
403
A:
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ func foo() {
73
73
foo (
74
74
consuming: 1
75
75
)
76
+ foo (
77
+ sending: 1
78
+ )
76
79
foo (
77
80
internal: 1
78
81
)
You can’t perform that action at this time.
0 commit comments