@@ -49,14 +49,12 @@ syn keyword swiftKeyword
49
49
\ while
50
50
51
51
syn keyword swiftTypeDefinition class extension protocol struct typealias enum skipwhite nextgroup =swiftTypeName
52
- syn region swiftTypeAttributes start =" \[ " end =" \] " contained skipwhite nextgroup =swiftTypeName
53
52
syn match swiftTypeName / \< [A-Za-z_][A-Za-z_0-9\. ]*\> / contained nextgroup =swiftTypeParameters
54
53
55
54
syn region swiftTypeParameters start =" <" end =" >" contained
56
55
57
56
syn keyword swiftMutating mutating skipwhite nextgroup =swiftFuncDefinition
58
- syn keyword swiftFuncDefinition func skipwhite nextgroup =swiftFuncAttributes,swiftFuncName,swiftOperator
59
- syn region swiftFuncAttributes start =" \[ " end =" \] " contained skipwhite nextgroup =swiftFuncName,swiftOperator
57
+ syn keyword swiftFuncDefinition func skipwhite nextgroup =swiftFuncName,swiftOperator
60
58
syn match swiftFuncName / \< [A-Za-z_][A-Za-z_0-9]*\> / contained skipwhite nextgroup =swiftTypeParameters
61
59
syn keyword swiftFuncKeyword subscript init destructor nextgroup =swiftTypeParameters
62
60
@@ -68,8 +66,8 @@ syn keyword swiftDefinitionModifier static public internal private
68
66
69
67
syn match swiftImplicitVarName / \$\< [A-Za-z_0-9]\+\> /
70
68
71
- syn match swiftTypeDeclaration / :/ skipwhite nextgroup =swiftTypeAttributes, swiftTypeName
72
- syn match swiftTypeDeclaration / ->/ skipwhite nextgroup =swiftTypeAttributes, swiftTypeName
69
+ syn match swiftTypeDeclaration / :/ skipwhite nextgroup =swiftTypeName
70
+ syn match swiftTypeDeclaration / ->/ skipwhite nextgroup =swiftTypeName
73
71
74
72
syn keyword swiftIdentifierKeyword metatype super self Self
75
73
@@ -111,11 +109,9 @@ hi def link swiftKeyword Statement
111
109
hi def link swiftTypeDefinition Define
112
110
hi def link swiftTypeName Type
113
111
hi def link swiftTypeParameters Special
114
- hi def link swiftTypeAttributes PreProc
115
112
hi def link swiftFuncDefinition Define
116
113
hi def link swiftDefinitionModifier Define
117
114
hi def link swiftFuncName Function
118
- hi def link swiftFuncAttributes PreProc
119
115
hi def link swiftFuncKeyword Function
120
116
hi def link swiftVarDefinition Define
121
117
hi def link swiftVarName Identifier
0 commit comments