Skip to content

Commit 7e42072

Browse files
committed
Merge pull request onevcat#126 from onevcat/fix/issue-119
Fix for class/struct comment
2 parents f7eb8a8 + 586c36a commit 7e42072

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

VVDocumenter-Xcode/OCCategory/NSString+VVSyntax/NSString+VVSyntax.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ -(BOOL) vv_isSwiftProperty
8484
// `let`/`var` can be in swift func, but `(` appear before `let`/`var` only
8585
// happens when `private(set)` or `internal(set)` is used
8686
// typealias is considered to share the same comment as property.
87-
return [self vv_matchesPatternRegexPattern:@"^\\s*([^(]*?)(((\\s*let|var|typealias\\s*)\\s+)|(\\(\\s*set\\s*\\)))"];
87+
return [self vv_matchesPatternRegexPattern:@"^\\s*([^(]*?)(((\\s*let|var|typealias|class\\s*)\\s+)|(\\(\\s*set\\s*\\)))"];
8888
}
8989

9090
-(BOOL) vv_isSwiftExtension

0 commit comments

Comments
 (0)