@@ -150,7 +150,6 @@ syntax keyword swiftKeywords
150
150
\ public
151
151
\ repeat
152
152
\ required
153
- \ rethrows
154
153
\ return
155
154
\ self
156
155
\ set
@@ -159,7 +158,6 @@ syntax keyword swiftKeywords
159
158
\ super
160
159
\ switch
161
160
\ throw
162
- \ throws
163
161
\ try
164
162
\ typealias
165
163
\ unowned
@@ -169,6 +167,10 @@ syntax keyword swiftKeywords
169
167
\ while
170
168
\ willSet
171
169
170
+ syntax keyword swiftDefinitionModifier
171
+ \ rethrows
172
+ \ throws
173
+
172
174
syntax match swiftMultiwordKeywords " indirect case"
173
175
syntax match swiftMultiwordKeywords " indirect enum"
174
176
" }}}
@@ -224,6 +226,7 @@ syntax region swiftGenericsWrapper start="\v\<" end="\v\>" contains=swiftType tr
224
226
syntax region swiftLiteralWrapper start =" \v\=\s *" skip =" \v [^\[\] ]\(\) " end =" \v (\[\] |\(\) )" contains =ALL transparent oneline
225
227
syntax region swiftReturnWrapper start =" \v -\>\s *" end =" \v (\{ |$)" contains =swiftType transparent oneline
226
228
syntax match swiftType " \v <\u\w *" contained containedin =swiftTypeWrapper,swiftLiteralWrapper,swiftGenericsWrapper,swiftTypeCastWrapper
229
+ syntax match swiftTypeDeclaration / ->/ skipwhite nextgroup =swiftType
227
230
228
231
syntax keyword swiftImports import
229
232
syntax keyword swiftCastKeyword is as contained
@@ -253,6 +256,7 @@ highlight default link swiftMarker Comment
253
256
254
257
highlight default link swiftString String
255
258
highlight default link swiftInterpolatedWrapper Delimiter
259
+ highlight default link swiftTypeDeclaration Delimiter
256
260
highlight default link swiftNumber Number
257
261
highlight default link swiftBoolean Boolean
258
262
@@ -271,6 +275,7 @@ highlight default link swiftPreprocessor PreProc
271
275
highlight default link swiftMethod Function
272
276
highlight default link swiftProperty Identifier
273
277
278
+ highlight default link swiftDefinitionModifier Define
274
279
highlight default link swiftConditionStatement PreProc
275
280
highlight default link swiftAvailability Normal
276
281
highlight default link swiftAvailabilityArg Normal
0 commit comments