Skip to content

Commit

Permalink
Further fixing of comment directives parsing by restoring description…
Browse files Browse the repository at this point in the history
… regexes that handle multiple lines.

This was removed in one of the previous commits as it seemed it worked better this way. However it needed to be added back as this prevented handling descriptions spanning multiple lines. The real problem was elsewhere and was fixed with one of the previous commits.
  • Loading branch information
tomaz committed Jan 17, 2011
1 parent b62af6c commit 7ebb873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Application/GBCommentComponentsProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ - (NSString *)newLineRegex {
#pragma mark Helper methods

- (NSString *)descriptionCaptureRegexForKeyword:(NSString *)keyword {
return [NSString stringWithFormat:@"^\\s*\\S%@\\s+(.*)", keyword];
return [NSString stringWithFormat:@"^\\s*\\S%@\\s+(?s:(.*))", keyword];
}

- (NSString *)nameDescriptionCaptureRegexForKeyword:(NSString *)keyword {
return [NSString stringWithFormat:@"^\\s*\\S%@\\s+(\\S+)\\s+(.*)", keyword];
return [NSString stringWithFormat:@"^\\s*\\S%@\\s+(\\S+)\\s+(?s:(.*))", keyword];
}

@end

0 comments on commit 7ebb873

Please sign in to comment.