Skip to content

Commit f3807d7

Browse files
committed
Fix handling method parmeter
def a, b, # comment c end This is valid definition of method with a comment inside args. This commit fixes behavior for it.
1 parent 80b7445 commit f3807d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/parser/ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ def parse_method_or_yield_parameters(method = nil,
15411541
unget_tk tk
15421542
read_documentation_modifiers method, modifiers
15431543
end
1544-
break if nest <= 0
1544+
break if !continue and nest <= 0
15451545
end
15461546
when :on_comma then
15471547
continue = true

0 commit comments

Comments
 (0)