Skip to content

Commit

Permalink
Merge pull request swiftlang#10189 from compnerd/vim-syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-ci authored Jun 10, 2017
2 parents 51623f7 + 7b36b97 commit 90e86d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions utils/vim/syntax/swift.vim
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ syn keyword swiftKeyword
\ guard
\ if
\ in
\ let
\ repeat
\ return
\ switch
\ throw
\ try
\ var
\ where
\ while
syn match swiftMultiwordKeyword
Expand All @@ -52,6 +50,9 @@ syn keyword swiftDefinitionModifier
\ static
\ throws

syn keyword swiftInOutKeyword skipwhite nextgroup=swiftTypeName
\ inout

syn keyword swiftIdentifierKeyword
\ Self
\ metatype
Expand Down Expand Up @@ -130,7 +131,7 @@ syn region swiftTypeParameters contained contains=swiftVarName,swiftConstraint
syn keyword swiftConstraint contained
\ where

syn match swiftTypeDeclaration skipwhite nextgroup=swiftType
syn match swiftTypeDeclaration skipwhite nextgroup=swiftType,swiftInOutKeyword
\ /:/
syn match swiftTypeDeclaration skipwhite nextgroup=swiftType
\ /->/
Expand Down Expand Up @@ -178,6 +179,7 @@ hi def link swiftTypeName Function
hi def link swiftConstraint Special
hi def link swiftFuncDefinition Define
hi def link swiftDefinitionModifier Define
hi def link swiftInOutKeyword Define
hi def link swiftFuncKeyword Function
hi def link swiftFuncKeywordGeneral Function
hi def link swiftVarDefinition Define
Expand Down

0 comments on commit 90e86d1

Please sign in to comment.