Skip to content

Commit 314699e

Browse files
committed
vim: highlight autoreleasepool
1 parent 6435ba6 commit 314699e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/vim/syntax/swift.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ syn keyword swiftFuncKeyword nextgroup=swiftTypeParameters
6969
\ init
7070
\ subscript
7171

72+
syn keyword swiftScope
73+
\ autoreleasepool
74+
7275
syn keyword swiftTypeDefinition class extension protocol struct typealias enum skipwhite nextgroup=swiftTypeName
7376

7477
syn match swiftTypeName /\<[A-Za-z_][A-Za-z_0-9\.]*\>[!?]\?/ contained nextgroup=swiftTypeParameters
@@ -161,5 +164,6 @@ hi def link swiftTodo Todo
161164
hi def link swiftNil Constant
162165
hi def link swiftCastOp Operator
163166
hi def link swiftNilOps Operator
167+
hi def link swiftScope PreProc
164168

165169
let b:current_syntax = "swift"

0 commit comments

Comments
 (0)