Skip to content

Commit 2412376

Browse files
kastiglioneHarlan
authored andcommitted
Fix swiftPreproc regex in swift.vim (swiftlang#18994)
1 parent 209ba2d commit 2412376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/vim/syntax/swift.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ syn match swiftOperator "\.\.[<.]" skipwhite nextgroup=swiftTypeParameters
157157
syn match swiftChar /'\([^'\\]\|\\\(["'tnr0\\]\|x[0-9a-fA-F]\{2}\|u[0-9a-fA-F]\{4}\|U[0-9a-fA-F]\{8}\)\)'/
158158

159159
syn match swiftPreproc /#\(\<file\>\|\<line\>\|\<function\>\)/
160-
syn match swiftPreproc /^\s*#\(\<if\>\|\<else\>\|\<elseif\>\|\<endif\>\<error\>\|\<warning\>\|\)/
160+
syn match swiftPreproc /^\s*#\(\<if\>\|\<else\>\|\<elseif\>\|\<endif\>\|\<error\>\|\<warning\>\)/
161161
syn region swiftPreprocFalse start="^\s*#\<if\>\s\+\<false\>" end="^\s*#\(\<else\>\|\<elseif\>\|\<endif\>\)"
162162

163163
syn match swiftAttribute /@\<\w\+\>/ skipwhite nextgroup=swiftType

0 commit comments

Comments
 (0)