File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ Return nil otherwise."
524524 " import" " init" " inout" " internal" " let" " open" " operator" " package"
525525 " private" " protocol" " public" " any" " some" " static" " struct" " subscript"
526526 " typealias" " var" " actor" " nonisolated" " isolated" " distributed"
527- " borrowing" " consuming" " macro" )
527+ " borrowing" " consuming" " sending " " macro" )
528528 " Keywords used in declarations." )
529529
530530(defconst swift-mode:statement-keywords
Original file line number Diff line number Diff line change @@ -610,10 +610,10 @@ return non-nil."
610610 ; ; Suppress implicit semicolon around keywords that cannot start or end
611611 ; ; statements.
612612 (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" ))
615615 (member (swift-mode:token:text next-token)
616- '(" any" " some" " inout" " borrowing" " consuming" " throws"
616+ '(" any" " some" " inout" " borrowing" " consuming" " sending " " throws"
617617 " rethrows" " in" " where" " isolated" " each" ))
618618
619619 ; ; Suppress implicit semicolon between throws and open parenthesis.
Original file line number Diff line number Diff line change @@ -390,12 +390,14 @@ private
390390 z,
391391 w:
392392 consuming
393+ sending
393394 Int
394395 ...
395396 )
396397 async
397398 throws
398399 ->
400+ sending
399401 [ A ]
400402 where
401403 A:
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ func foo() {
7373 foo (
7474 consuming: 1
7575 )
76+ foo (
77+ sending: 1
78+ )
7679 foo (
7780 internal: 1
7881 )
You can’t perform that action at this time.
0 commit comments