projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSDOC/Scope.js
[gnome.introspection-doc-generator]
/
JSDOC
/
DocTag.js
diff --git
a/JSDOC/DocTag.js
b/JSDOC/DocTag.js
index
8e8afec
..
b7f25ca
100644
(file)
--- a/
JSDOC/DocTag.js
+++ b/
JSDOC/DocTag.js
@@
-48,6
+48,11
@@
DocTag = XObject.define(
var ret = { '*object' : 'DocTag' };
for (var i in this) {
var ret = { '*object' : 'DocTag' };
for (var i in this) {
+ if (i == 'optvalues') {
+ ret[i] = this.optvalues;
+ continue;
+ }
+
switch (typeof(this[i])) {
case 'function':
continue;
switch (typeof(this[i])) {
case 'function':
continue;
@@
-57,8
+62,14
@@
DocTag = XObject.define(
case 'number':
case 'boolean':
ret[i] = this[i]; continue;
case 'number':
case 'boolean':
ret[i] = this[i]; continue;
+
+
+
default:
default:
- print("unknown type:" + typeof(this[i]));
+
+ print("unknown type: (" + i + ")" + typeof(this[i]));
+ this.toJSON = null;
+ print(JSON.stringify(this));;
Seed.quit();
}
}
Seed.quit();
}
}
@@
-93,13
+104,13
@@
DocTag = XObject.define(
}
// if type == @cfg, and matches (|....|...)
}
// if type == @cfg, and matches (|....|...)
- /*
+
src = src.trim();
if (this.title == "cfg" && src.match(/^\([^)]+\)/)) {
var m = src.match(/^\(([^)]+)\)/);
print(m);
if (m[1].match(/\|/)) {
src = src.trim();
if (this.title == "cfg" && src.match(/^\([^)]+\)/)) {
var m = src.match(/^\(([^)]+)\)/);
print(m);
if (m[1].match(/\|/)) {
- var opts = m[1].
split(/\|
/);
+ var opts = m[1].
trim().split(/\s*\|\s*
/);
this.optvalues = opts;
src = src.substring(m[0].length).trim();
print(src);
this.optvalues = opts;
src = src.substring(m[0].length).trim();
print(src);
@@
-109,7
+120,6
@@
DocTag = XObject.define(
}
}
- */
this.desc = src; // whatever is left
this.desc = src; // whatever is left