We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b5c875 commit 10a2e5bCopy full SHA for 10a2e5b
lib/yard/parser/ruby/ruby_parser.rb
@@ -612,7 +612,7 @@ def comment_starts_line?(charno)
612
613
def insert_comments
614
root.traverse do |node|
615
- next if node.type == :comment || node.type == :list || node.parent.type != :list
+ next if %i{comment void_stmt list}.include?(node.type) || node.parent.type != :list
616
617
# never attach comments to if/unless mod nodes
618
if node.type == :if_mod || node.type == :unless_mod
0 commit comments