Skip to content

Commit f729903

Browse files
authored
Merge pull request #19531 from tokorom/vim-tuple-highlight
[vim] Fix tuple hilight problem with swiftType
2 parents 7d440c1 + b1d4b0b commit f729903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/vim/syntax/swift.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ syn match swiftTypePair contained skipwhite nextgroup=swiftTypeParameters,swiftT
127127
" (Type[, Type]) (tuple)
128128
" FIXME: we should be able to use skip="," and drop swiftParamDelim
129129
syn region swiftType contained contains=swiftType,swiftParamDelim
130-
\ matchgroup=Delimiter start="[^@](" end=")" matchgroup=NONE skip=","
130+
\ matchgroup=Delimiter start="[^@]\?(" end=")" matchgroup=NONE skip=","
131131
syn match swiftParamDelim contained
132132
\ /,/
133133
" <Generic Clause> (generics)

0 commit comments

Comments
 (0)