mirror of
https://github.com/keith/swift.vim.git
synced 2025-12-22 12:14:13 +01:00
Merge pull request #86 from keith/ks/indirect-case
Only highlight indirect when followed by case
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user