highlight 'raise' yard tag

This commit is contained in:
John Mair 2012-06-23 21:13:44 +12:00
parent e23eba98b5
commit 970ca06d79
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class Pry
def process_yardoc(comment)
yard_tags = ["param", "return", "option", "yield", "attr", "attr_reader", "attr_writer",
"deprecate", "example"]
"deprecate", "example", "raise"]
(yard_tags - ["example"]).inject(comment) { |a, v| process_yardoc_tag(a, v) }.
gsub(/^@(#{yard_tags.join("|")})/) { Pry.color ? "\e[33m#{$1}\e[0m": $1 }
end