@@ -99,8 +99,8 @@ END is the point after the token."
99
99
100
100
; ; Token types is one of the following symbols:
101
101
; ;
102
- ; ; - prefix-operator (including try, try?, try!, await, consume, copy, and
103
- ; ; discard )
102
+ ; ; - prefix-operator (including try, try?, try!, await, consume, copy, discard,
103
+ ; ; and each )
104
104
; ; - postfix-operator
105
105
; ; - binary-operator (including as, as?, as!, is, =, ., and ->)
106
106
; ; - attribute (e.g. @objc, @abc(def))
@@ -611,7 +611,7 @@ return non-nil."
611
611
; ; statements.
612
612
(member (swift-mode:token:text previous-token)
613
613
'(" any" " some" " inout" " borrowing" " consuming" " in" " where"
614
- " isolated" ))
614
+ " isolated" " each " ))
615
615
(member (swift-mode:token:text next-token)
616
616
'(" any" " some" " inout" " borrowing" " consuming" " throws"
617
617
" rethrows" " in" " where" " isolated" )))
@@ -990,7 +990,7 @@ Other properties are the same as the TOKEN."
990
990
(cond
991
991
(is-declaration 'identifier )
992
992
((member text '(" try" " try?" " try!" " await" " consume" " copy"
993
- " discard" ))
993
+ " discard" " each " ))
994
994
'prefix-operator )
995
995
((equal text " ." ) 'binary-operator )
996
996
((and has-preceding-space has-following-space) 'binary-operator )
@@ -1149,7 +1149,7 @@ This function does not return `implicit-;' or `type-:'."
1149
1149
pos-after-comment
1150
1150
(point ))))
1151
1151
1152
- ; ; Operator (other than as, try, is, await, consume, copy, or discard )
1152
+ ; ; Operator (other than as, try, is, await, consume, copy, discard, or each )
1153
1153
; ;
1154
1154
; ; Operators starts with a dot can contains dots. Other operators cannot
1155
1155
; ; contain dots.
@@ -1248,7 +1248,7 @@ This function does not return `implicit-;' or `type-:'."
1248
1248
text
1249
1249
(- (point ) (length text))
1250
1250
(point )))
1251
- ((member text '(" await" " consume" " copy" " discard" ))
1251
+ ((member text '(" await" " consume" " copy" " discard" " each " ))
1252
1252
(swift-mode:token 'prefix-operator
1253
1253
text
1254
1254
(- (point ) (length text))
@@ -1421,7 +1421,7 @@ This function does not return `implicit-;' or `type-:'."
1421
1421
(point )
1422
1422
pos-before-comment)))
1423
1423
1424
- ; ; Operator (other than as, try, is, await, consume, copy, or discard )
1424
+ ; ; Operator (other than as, try, is, await, consume, copy, discard, or each )
1425
1425
; ;
1426
1426
; ; Operators which starts with a dot can contain other dots. Other
1427
1427
; ; operators cannot contain dots.
@@ -1503,7 +1503,7 @@ This function does not return `implicit-;' or `type-:'."
1503
1503
text
1504
1504
(point )
1505
1505
(+ (point ) (length text))))
1506
- ((member text '(" try" " await" " consume" " copy" " discard" ))
1506
+ ((member text '(" try" " await" " consume" " copy" " discard" " each " ))
1507
1507
(swift-mode:token 'prefix-operator
1508
1508
text
1509
1509
(point )
0 commit comments