From 7a4b348a8dac622fda8cd9c4ae2e064866c8d843 Mon Sep 17 00:00:00 2001 From: Watson Date: Tue, 6 Nov 2012 16:09:41 +0900 Subject: [PATCH] correspond to property which has the semicolon at end of declaration like: @property (readonly) NSString *previewItemTitle; --- doc/docset.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/docset.rb b/doc/docset.rb index 41ecee51..17315903 100644 --- a/doc/docset.rb +++ b/doc/docset.rb @@ -63,7 +63,7 @@ class DocsetGenerator decl = node.xpath(".//div[@class='declaration']/div[@class='declaration']").text readonly = decl.include?('readonly') decl.sub!(/@property\s*(\([^\)]+\))?/, '') - md = decl.match(/(\w+)$/) + md = decl.match(/(\w+);?$/) next unless md title = md[1] type = md.pre_match