File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -111,17 +111,18 @@ syn match swiftType contained nextgroup=swiftTypeParameters
111
111
\ /\<[A-Za-z_][A-Za-z_0-9\.]*\>[!?]\?/
112
112
" [Type:Type] (dictionary) or [Type] (array)
113
113
syn region swiftType contained contains =swiftTypePair,swiftType
114
- \ start = /\[/ end = /\]/
114
+ \ matchgroup = Delimiter start = /\[/ end = /\]/
115
115
syn match swiftTypePair contained nextgroup =swiftTypeParameters,swiftTypeDeclaration
116
116
\ /\<[A-Za-z_][A-Za-z_0-9\.]*\>[!?]\?/
117
117
" (Type[, Type]) (tuple)
118
+ " FIXME: we should be able to use skip="," and drop swiftParamDelim
118
119
syn region swiftType contained contains =swiftType,swiftParamDelim
119
- \ start = " [^@](" end = " )"
120
+ \ matchgroup = Delimiter start = " [^@](" end = " )" matchgroup = NONE skip = " , "
120
121
syn match swiftParamDelim contained
121
122
\ /,/
122
123
" <Generic Clause> (generics)
123
124
syn region swiftTypeParameters contained contains =swiftVarName,swiftConstraint
124
- \ start = " <" end = " >"
125
+ \ matchgroup = Delimiter start = " <" end = " >" matchgroup = NONE skip = " , "
125
126
syn keyword swiftConstraint contained
126
127
\ where
127
128
You can’t perform that action at this time.
0 commit comments