File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,17 @@ syn keyword swiftVarDefinition skipwhite nextgroup=swiftVarName
90
90
\ let
91
91
\ var
92
92
93
+ syn keyword swiftLabel
94
+ \ get
95
+ \ set
96
+
97
+ syn keyword swiftBoolean
98
+ \ false
99
+ \ true
100
+
101
+ syn keyword swiftNil
102
+ \ nil
103
+
93
104
syn match swiftImportModule contained nextgroup =swiftImportComponent
94
105
\ /\<[A-Za-z_][A-Za-z_0-9]*\>/
95
106
syn match swiftImportComponent contained nextgroup =swiftImportComponent
@@ -128,8 +139,6 @@ syn match swiftTypeDeclaration skipwhite nextgroup=swiftType
128
139
syn match swiftTypeDeclaration skipwhite nextgroup =swiftType
129
140
\ /->/
130
141
131
- syn keyword swiftBoolean true false
132
-
133
142
syn region swiftString start =/ "/ skip =/ \\\\\|\\ "/ end =/ "/ contains =swiftInterpolation
134
143
syn region swiftInterpolation start =/ \\ (/ end =/ )/ contained
135
144
syn region swiftComment start =" /\* " end =" \* /" contains =swiftComment,swiftLineComment,swiftTodo
@@ -145,15 +154,12 @@ syn match swiftOperator "\.\.[<.]" skipwhite nextgroup=swiftTypeParameters
145
154
146
155
syn match swiftChar / '\( [^'\\ ]\|\\\( ["'tnr0\\ ]\| x[0-9a-fA-F]\{ 2}\| u[0-9a-fA-F]\{ 4}\| U[0-9a-fA-F]\{ 8}\)\) '/
147
156
148
- syn keyword swiftLabel get set
149
-
150
157
syn match swiftPreproc / ^\s *#\(\< if\>\|\< else\>\|\< elseif\>\|\< endif\>\) /
151
158
syn region swiftPreprocFalse start =" ^\s *#\< if\>\s\+\< false\> " end =" ^\s *#\(\< else\>\|\< elseif\>\|\< endif\>\) "
152
159
153
160
syn match swiftAttribute / @\<\w\+\> / skipwhite nextgroup =swiftType
154
161
155
162
syn keyword swiftTodo TODO FIXME contained
156
- syn keyword swiftNil nil
157
163
158
164
syn match swiftCastOp " \< as\> [!?]\? " skipwhite nextgroup =swiftType
159
165
You can’t perform that action at this time.
0 commit comments