Skip to content

Commit e8c2ad4

Browse files
committed
vim: remove unnecessary match duplication
1 parent c0a8d3f commit e8c2ad4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

utils/vim/syntax/swift.vim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,8 @@ syn region swiftType contained contains=swiftType,swiftParamDelim
120120
syn match swiftParamDelim contained
121121
\ /,/
122122
" <Generic Clause> (generics)
123-
syn region swiftTypeParameters contained contains=swiftArchetype,swiftConstraint
123+
syn region swiftTypeParameters contained contains=swiftVarName,swiftConstraint
124124
\ start="<" end=">"
125-
syn match swiftArchetype contained skipwhite nextgroup=swiftTypeDeclaration
126-
\ /\<[A-Za-z_][A-Za-z_0-9]*\>/
127125
syn keyword swiftConstraint contained
128126
\ where
129127

@@ -169,7 +167,6 @@ hi def link swiftTypeDefinition Define
169167
hi def link swiftType Type
170168
hi def link swiftTypePair Type
171169
hi def link swiftTypeName Function
172-
hi def link swiftArchetype Identifier
173170
hi def link swiftConstraint Special
174171
hi def link swiftFuncDefinition Define
175172
hi def link swiftDefinitionModifier Define

0 commit comments

Comments
 (0)