Skip to content

Commit 51a2df7

Browse files
committed
vim: highlight is casts
1 parent e8c2ad4 commit 51a2df7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/vim/syntax/swift.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ syn match swiftAttribute /@\<\w\+\>/ skipwhite nextgroup=swiftType
152152

153153
syn keyword swiftTodo TODO FIXME contained
154154

155+
syn match swiftCastOp "\<is\>" skipwhite nextgroup=swiftType
155156
syn match swiftCastOp "\<as\>[!?]\?" skipwhite nextgroup=swiftType
156157

157158
syn match swiftNilOps "??"

0 commit comments

Comments
 (0)