Ox.doc: support inline properties prefixed with '.', add FIXMEs
This commit is contained in:
parent
ed6a76ae24
commit
05828db75d
1 changed files with 3 additions and 0 deletions
|
@ -309,6 +309,7 @@ Ox.doc = (function() {
|
|||
if (section) {
|
||||
item.section = section;
|
||||
}
|
||||
// FIXME: should become !/^\./.test(item.name)
|
||||
if (/^[A-Z]/.test(item.name)) {
|
||||
// main item
|
||||
// remove leading linebreaks and whitespace
|
||||
|
@ -317,6 +318,8 @@ Ox.doc = (function() {
|
|||
items.push(item);
|
||||
} else {
|
||||
// property of an item
|
||||
// FIXME: should become item.name.slice(1)
|
||||
item.name = item.name.replace(/^\./, '');
|
||||
lastItem = Ox.last(items);
|
||||
parent = lastItem.types[0] == 'function'
|
||||
&& lastItem.returns
|
||||
|
|
Loading…
Reference in a new issue