We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2986b11 commit e0a5eddCopy full SHA for e0a5edd
utils/vim/syntax/swift.vim
@@ -104,7 +104,9 @@ syn match swiftAttribute /@\<\w\+\>/
104
105
syn keyword swiftTodo TODO FIXME contained
106
syn keyword swiftNil nil
107
-syn match swiftNilOps "\<as?\?\>"
+
108
+syn match swiftCastOp "\<as\>[!?]\?" skipwhite nextgroup=swiftTypeName
109
110
syn match swiftNilOps "??"
111
112
hi def link swiftImport Include
@@ -142,6 +144,7 @@ hi def link swiftPreprocFalse Comment
142
144
hi def link swiftAttribute Type
143
145
hi def link swiftTodo Todo
146
hi def link swiftNil Constant
147
+hi def link swiftCastOp Operator
148
hi def link swiftNilOps Operator
149
150
let b:current_syntax = "swift"
0 commit comments