mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
correspond to property which has the semicolon at end of declaration
like: @property (readonly) NSString *previewItemTitle;
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user