Skip to content

Commit 799ad98

Browse files
committed
vim: highlight #file, #line
1 parent 766c56f commit 799ad98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/vim/syntax/swift.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ syn match swiftOperator "\.\.[<.]" skipwhite nextgroup=swiftTypeParameters
146146

147147
syn match swiftChar /'\([^'\\]\|\\\(["'tnr0\\]\|x[0-9a-fA-F]\{2}\|u[0-9a-fA-F]\{4}\|U[0-9a-fA-F]\{8}\)\)'/
148148

149+
syn match swiftPreproc /#\(\<file\>\|\<line\>\)/
149150
syn match swiftPreproc /^\s*#\(\<if\>\|\<else\>\|\<elseif\>\|\<endif\>\)/
150151
syn region swiftPreprocFalse start="^\s*#\<if\>\s\+\<false\>" end="^\s*#\(\<else\>\|\<elseif\>\|\<endif\>\)"
151152

0 commit comments

Comments
 (0)