Skip to content

Commit 2dd06ec

Browse files
committed
---
yaml --- r: 319470 b: refs/heads/master-rebranch c: e695f33 h: refs/heads/master
1 parent 70abe02 commit 2dd06ec

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,4 +1457,4 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
14571457
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
14581458
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
14591459
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1460-
refs/heads/master-rebranch: e1c571be278fac50929fcb8139fa20ea1bdf0c3b
1460+
refs/heads/master-rebranch: e695f33df8fcf4a710032cb27dbbbb298de16e6f

branches/master-rebranch/utils/vim/syntax/swift.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ syn keyword swiftTypeDefinition skipwhite skipempty nextgroup=swiftTypeName
8282
\ extension
8383
\ protocol
8484
\ struct
85+
86+
syn keyword swiftTypeAliasDefinition skipwhite skipempty nextgroup=swiftTypeAliasName
8587
\ typealias
8688

8789
syn match swiftMultiwordTypeDefinition skipwhite skipempty nextgroup=swiftTypeName
@@ -109,6 +111,8 @@ syn match swiftImportModule contained nextgroup=swiftImportComponent
109111
syn match swiftImportComponent contained nextgroup=swiftImportComponent
110112
\ /\.\<[A-Za-z_][A-Za-z_0-9]*\>/
111113

114+
syn match swiftTypeAliasName contained skipwhite skipempty nextgroup=swiftTypeAliasValue
115+
\ /\<[A-Za-z_][A-Za-z_0-9]*\>/
112116
syn match swiftTypeName contained skipwhite skipempty nextgroup=swiftTypeParameters
113117
\ /\<[A-Za-z_][A-Za-z_0-9\.]*\>/
114118
syn match swiftVarName contained skipwhite skipempty nextgroup=swiftTypeDeclaration
@@ -136,6 +140,8 @@ syn region swiftTypeParameters contained contains=swiftVarName,swiftConstraint
136140
syn keyword swiftConstraint contained
137141
\ where
138142

143+
syn match swiftTypeAliasValue skipwhite skipempty nextgroup=swiftType
144+
\ /=/
139145
syn match swiftTypeDeclaration skipwhite skipempty nextgroup=swiftType,swiftInOutKeyword
140146
\ /:/
141147
syn match swiftTypeDeclaration skipwhite skipempty nextgroup=swiftType
@@ -195,17 +201,20 @@ hi def link swiftTypeDefinition Define
195201
hi def link swiftMultiwordTypeDefinition Define
196202
hi def link swiftType Type
197203
hi def link swiftTypePair Type
204+
hi def link swiftTypeAliasName Identifier
198205
hi def link swiftTypeName Function
199206
hi def link swiftConstraint Special
200207
hi def link swiftFuncDefinition Define
201208
hi def link swiftDefinitionModifier Define
202209
hi def link swiftInOutKeyword Define
203210
hi def link swiftFuncKeyword Function
204211
hi def link swiftFuncKeywordGeneral Function
212+
hi def link swiftTypeAliasDefinition Define
205213
hi def link swiftVarDefinition Define
206214
hi def link swiftVarName Identifier
207215
hi def link swiftImplicitVarName Identifier
208216
hi def link swiftIdentifierKeyword Identifier
217+
hi def link swiftTypeAliasValue Delimiter
209218
hi def link swiftTypeDeclaration Delimiter
210219
hi def link swiftTypeParameters Delimiter
211220
hi def link swiftBoolean Boolean

0 commit comments

Comments
 (0)