我正在将我维护的 rubygem 从 RDoc 切换到 YARD 文档。但是,代码中有一些重要的注释只需要保留在代码中,不应该出现在文档中。例如:
##
# SomeClass documentation here.
#--
# CRITICAL comment that should be in the code but not in the documentation,
# and must be at this particular spot in the code.
#++
# more documentation that follows the critical comment block, but this part
# should be in the generated documentation
class SomeClass
...
end
RDoc 尊重#--
和#++
门,但 YARD 没有。在 YARD 的标记中做类似事情的语法是什么(如果存在)?