lib/yard/docstring_parser.rb in yard-0.9.9 vs lib/yard/docstring_parser.rb in yard-0.9.10
- old
+ new
@@ -330,9 +330,10 @@
# Define a callback to check that @see tags do not use {}.
after_parse do |parser|
next unless parser.object
parser.tags.each_with_index do |tag, i|
+ next if tag.is_a?(Tags::RefTagList) # we don't handle this yet
next unless tag.tag_name == "see"
next unless "#{tag.name}#{tag.text}" =~ /\A\{.*\}\Z/
infile_info = "\n in file `#{parser.object.file}' " \
"near line #{parser.object.line}"
log.warn "@see tag (##{i + 1}) should not be wrapped in {} " \