Skip to content

Commit c2ff4b5

Browse files
author
Brad Howes
committed
Fix Swift parameters
Swift parameter markup has a colon (“:”) after the parameter name. If the alignArgumentComments setting is true, then the colon will be present, but if it is false it won’t. The fix is simply to append a colon after the name for Swift comments.
1 parent 23a0a00 commit c2ff4b5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

VVDocumenter-Xcode/Commenter/VVBaseCommenter.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ -(NSString *) argumentsComment
172172
}
173173
}
174174
}
175+
else {
176+
if (self.forSwiftEnum || self.forSwift) {
177+
name = [name stringByAppendingString:@":"];
178+
}
179+
}
175180

176181
NSString *indentString = useSpace ? @" " : @"\t";
177182
if (self.forSwiftEnum) {

0 commit comments

Comments
 (0)