Skip to content

Commit 808fb60

Browse files
authored
Merge pull request #11066 from compnerd/vim-syntax
2 parents 14f9b05 + d45c575 commit 808fb60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/vim/syntax/swift.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ syn keyword swiftDefinitionModifier
4949
\ rethrows
5050
\ static
5151
\ throws
52+
\ weak
5253

5354
syn keyword swiftInOutKeyword skipwhite nextgroup=swiftTypeName
5455
\ inout
@@ -81,6 +82,8 @@ syn keyword swiftTypeDefinition skipwhite nextgroup=swiftTypeName
8182
\ protocol
8283
\ struct
8384
\ typealias
85+
syn match swiftMultiwordTypeDefinition nextgroup=swiftTypeName
86+
\ "indirect enum"
8487

8588
syn keyword swiftVarDefinition skipwhite nextgroup=swiftVarName
8689
\ let
@@ -173,6 +176,7 @@ hi def link swiftImportComponent Identifier
173176
hi def link swiftKeyword Statement
174177
hi def link swiftMultiwordKeyword Statement
175178
hi def link swiftTypeDefinition Define
179+
hi def link swiftMultiwordTypeDefinition Define
176180
hi def link swiftType Type
177181
hi def link swiftTypePair Type
178182
hi def link swiftTypeName Function

0 commit comments

Comments
 (0)