File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,29 @@ syn match silFunctionType skipwhite
32
32
syn match silMetatypeType skipwhite
33
33
\ /@\(\<thick\>\|\<thin\>\|\<objc\>\)/
34
34
35
+ " TODO: handle [tail_elems sil-type * sil-operand]
36
+ syn region silAttribute contains =silAttributes
37
+ \ start = " \[ " end = " \] "
38
+ syn keyword silAttributes contained containedin =silAttribute
39
+ \ abort
40
+ \ deinit
41
+ \ delegatingself
42
+ \ derivedself
43
+ \ derivedselfonly
44
+ \ dynamic
45
+ \ exact
46
+ \ init
47
+ \ modify
48
+ \ objc
49
+ \ read
50
+ \ rootself
51
+ \ stack
52
+ \ static
53
+ \ strict
54
+ \ unknown
55
+ \ unsafe
56
+ \ var
57
+
35
58
syn keyword swiftImport import skipwhite nextgroup =swiftImportModule
36
59
syn match swiftImportModule / \< [A-Za-z_][A-Za-z_0-9]*\> / contained nextgroup =swiftImportComponent
37
60
syn match swiftImportComponent / \.\< [A-Za-z_][A-Za-z_0-9]*\> / contained nextgroup =swiftImportComponent
@@ -132,5 +155,6 @@ hi def link silConventions Type
132
155
hi def link silIdentifier Identifier
133
156
hi def link silFunctionType Special
134
157
hi def link silMetatypeType Special
158
+ hi def link silAttribute PreProc
135
159
136
160
let b: current_syntax = " sil"
You can’t perform that action at this time.
0 commit comments