Skip to content

Commit a55ae6d

Browse files
committed
Match first quantifier non-greedy and ignore __attribute__
1 parent 74b3892 commit a55ae6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

VVDocumenter-Xcode/Commenter/VVFunctionCommenter.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ -(void) captureReturnType
2222

2323
-(void) captureParameters
2424
{
25-
NSArray * braceGroups = [self.code vv_stringsByExtractingGroupsUsingRegexPattern:@"\\(([^\\^].*)\\)"];
25+
NSArray * braceGroups = [self.code vv_stringsByExtractingGroupsUsingRegexPattern:@"\\(([^\\^].*?)\\)(?:__attribute__\\(\\(.*\\)\\))?"];
2626
if (braceGroups.count > 0) {
2727
[self parseArgumentsInputArgs:braceGroups[0]];
2828
}

0 commit comments

Comments
 (0)