Skip to content

Commit a67a37e

Browse files
committed
[vim] Add swiftParenthesisRegion
1 parent e3ee12c commit a67a37e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/vim/syntax/swift.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ syn match swiftTypeDeclaration skipwhite nextgroup=swiftType,swiftInOutKeyword
141141
syn match swiftTypeDeclaration skipwhite nextgroup=swiftType
142142
\ /->/
143143

144+
syn region swiftParenthesisRegion matchgroup=NONE start=/(/ end=/)/ contains=TOP
145+
144146
syn region swiftString start=/"/ skip=/\\\\\|\\"/ end=/"/ contains=swiftInterpolationRegion
145147
syn region swiftInterpolationRegion matchgroup=swiftInterpolation start=/\\(/ end=/)/ contained contains=TOP
146148
syn region swiftComment start="/\*" end="\*/" contains=swiftComment,swiftLineComment,swiftTodo

0 commit comments

Comments
 (0)