Closed tatthurs closed 4 months ago
There is an existing parsing test for multiple hash prefixes: https://github.com/castwide/solargraph/blob/d48f3963d1ce19b369efbc7f0327b27767fc7b0c/spec/source_spec.rb#L290-L300
There isn't anything special about double hash -- any number of hashes > 1 will reproduce the issue.
Interestingly, type annotations seem unaffected by this. Eg:
##
# @return [Number]
def baz
"baz"
end
works as expected and shows signature information.
Confirmed. I'll work on a fix.
Fix released in v0.50.0.
Problem
YARD method directives are not parsed when the defining comment block begins with a double hash
##
.Reproduction
Paste the following into https://solargraph.org/demo and note that
foos
will autocomplete with signature information, butfoobar
will not: