File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -168,8 +168,11 @@ enum Card : Int {
168
168
case Heart
169
169
case Diamond
170
170
case Club
171
+ indirect case Foo( a: Card )
171
172
}
172
173
174
+ let indirect = 5
175
+
173
176
struct foo : bar {
174
177
switch ( foo) {
175
178
case foo:
Original file line number Diff line number Diff line change @@ -127,7 +127,6 @@ syntax keyword swiftKeywords
127
127
\ if
128
128
\ import
129
129
\ in
130
- \ indirect
131
130
\ infix
132
131
\ init
133
132
\ inout
@@ -165,6 +164,8 @@ syntax keyword swiftKeywords
165
164
\ where
166
165
\ while
167
166
\ willSet
167
+
168
+ syntax match swiftMultiwordKeywords " indirect case"
168
169
" }}}
169
170
170
171
" Names surrounded by backticks. This aren't limited to keywords because 1)
@@ -252,6 +253,7 @@ highlight default link swiftBoolean Boolean
252
253
highlight default link swiftOperator Operator
253
254
highlight default link swiftCastKeyword Keyword
254
255
highlight default link swiftKeywords Keyword
256
+ highlight default link swiftMultiwordKeywords Keyword
255
257
highlight default link swiftEscapedReservedWord Normal
256
258
highlight default link swiftClosureArgument Operator
257
259
highlight default link swiftAttributes PreProc
You can’t perform that action at this time.
0 commit comments