correspond to property which has the semicolon at end of declaration

like:
@property (readonly) NSString *previewItemTitle;
This commit is contained in:
Watson
2012-11-06 16:09:41 +09:00
parent cd0d1b334d
commit 7a4b348a8d

View File

@@ -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