Skip to content

Commit 0108c38

Browse files
authored
Prevent swiftComment match from hiding region end
When a block style comment contains `//` on the same line as its end mark, it was causing the region to extend to the end of file.
1 parent 06ece0e commit 0108c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/swift.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ syntax keyword swiftPreprocessor
241241
syntax match swiftComment "\v\/\/.*$"
242242
\ contains=swiftTodos,swiftDocString,swiftMarker,@Spell oneline
243243
syntax region swiftComment start="/\*" end="\*/"
244-
\ contains=swiftTodos,swiftDocString,swiftMarker,swiftComment,@Spell fold
244+
\ contains=swiftTodos,swiftDocString,swiftMarker,@Spell fold
245245

246246

247247
" Set highlights

0 commit comments

Comments
 (0)