noprompt / vim-yardoc

Ruby syntax extensions for highlighting YARD documentation.
21 stars 5 forks source link

Less strict matching of YARD tags. #2

Closed yorickpeterse closed 11 years ago

yorickpeterse commented 11 years ago

This patch makes it possible for this plugin to match text such as # [multiple spaces here that Github removes because it's a cunt] @return as YARD tags. Previously it would only match if there was exactly 1 space between the comment character and the @ sign. This would prevent the plugin from properly highlighting the following code:

# @!attribute [r] example
#  @return SomeConstant
noprompt commented 11 years ago

Works for me! Very good. Thanks!