Skip to content

Commit ada1f9a

Browse files
committed
Just be non-greedy
1 parent 082758f commit ada1f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/parser/c.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def find_body class_name, meth_name, meth_obj, file_content, quiet = false
376376
when %r%((?>/\*.*?\*/\s*)?)
377377
((?:(?:static|SWIGINTERN)\s+)?
378378
(?:intern\s+)?VALUE\s+#{meth_name}
379-
\s*(\([^)]*\))([^;]|$))%xm then
379+
\s*(\(.*?\))([^;]|$))%xm then
380380
comment = $1
381381
body = $2
382382

0 commit comments

Comments
 (0)