Merge pull request #86 from keith/ks/indirect-case

Only highlight indirect when followed by case
This commit is contained in:
Keith Smiley
2016-04-24 13:56:04 -07:00
2 changed files with 6 additions and 1 deletions

View File

@@ -168,8 +168,11 @@ enum Card : Int {
case Heart
case Diamond
case Club
indirect case Foo(a: Card)
}
let indirect = 5
struct foo : bar {
switch (foo) {
case foo:

View File

@@ -127,7 +127,6 @@ syntax keyword swiftKeywords
\ if
\ import
\ in
\ indirect
\ infix
\ init
\ inout
@@ -165,6 +164,8 @@ syntax keyword swiftKeywords
\ where
\ while
\ willSet
syntax match swiftMultiwordKeywords "indirect case"
" }}}
" Names surrounded by backticks. This aren't limited to keywords because 1)
@@ -252,6 +253,7 @@ highlight default link swiftBoolean Boolean
highlight default link swiftOperator Operator
highlight default link swiftCastKeyword Keyword
highlight default link swiftKeywords Keyword
highlight default link swiftMultiwordKeywords Keyword
highlight default link swiftEscapedReservedWord Normal
highlight default link swiftClosureArgument Operator
highlight default link swiftAttributes PreProc