File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,6 @@ if exists("b:current_syntax")
7
7
finish
8
8
endif
9
9
10
- syn keyword swiftImport import skipwhite nextgroup =swiftImportModule
11
-
12
- syn match swiftImportModule / \< [A-Za-z_][A-Za-z_0-9]*\> / contained nextgroup =swiftImportComponent
13
- syn match swiftImportComponent / \.\< [A-Za-z_][A-Za-z_0-9]*\> / contained nextgroup =swiftImportComponent
14
-
15
10
syn keyword swiftKeyword
16
11
\ associatedtype
17
12
\ break
@@ -49,6 +44,9 @@ syn keyword swiftKeyword
49
44
\ where
50
45
\ while
51
46
47
+ syn keyword swiftImport skipwhite nextgroup =swiftImportModule
48
+ \ import
49
+
52
50
syn keyword swiftDefinitionModifier
53
51
\ dynamic
54
52
\ internal
@@ -92,6 +90,11 @@ syn keyword swiftVarDefinition skipwhite nextgroup=swiftVarName
92
90
\ let
93
91
\ var
94
92
93
+ syn match swiftImportModule contained nextgroup =swiftImportComponent
94
+ \ /\<[A-Za-z_][A-Za-z_0-9]*\>/
95
+ syn match swiftImportComponent contained nextgroup =swiftImportComponent
96
+ \ /\.\<[A-Za-z_][A-Za-z_0-9]*\>/
97
+
95
98
syn match swiftTypeName contained nextgroup =swiftTypeParameters
96
99
\ /\<[A-Za-z_][A-Za-z_0-9\.]*\>/
97
100
syn match swiftVarName contained skipwhite nextgroup =swiftTypeDeclaration
You can’t perform that action at this time.
0 commit comments