Skip to content

Commit 230232f

Browse files
committed
Merge pull request #2545 from compnerd/vim-syntax-improvements
vim: comment out #if false
2 parents a55c785 + df44056 commit 230232f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/vim/syntax/swift.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ syn match swiftChar /'\([^'\\]\|\\\(["'tnr0\\]\|x[0-9a-fA-F]\{2}\|u[0-9a-fA-F]\{
6262
syn keyword swiftLabel get set
6363

6464
syn match swiftPreproc /^\s*#\(\<if\>\|\<else\>\|\<elseif\>\|\<endif\>\)/
65+
syn region swiftPreprocFalse start="^\s*#\<if\>\s\+\<false\>" end="^\s*#\(\<else\>\|\<elseif\>\|\<endif\>\)"
6566

6667
syn match swiftAttribute /@\<\w\+\>/ skipwhite
6768

@@ -103,6 +104,7 @@ hi def link swiftLabel Operator
103104
hi def link swiftNew Operator
104105
hi def link swiftMutating Statement
105106
hi def link swiftPreproc PreCondit
107+
hi def link swiftPreprocFalse Comment
106108
hi def link swiftAttribute Type
107109
hi def link swiftTodo Todo
108110
hi def link swiftNil Constant

0 commit comments

Comments
 (0)