JSDOC/DocTag.js
[gnome.introspection-doc-generator] / JSDOC / DocTag.js
index e761d1f..6b69d44 100644 (file)
@@ -58,7 +58,10 @@ DocTag = XObject.define(
                     case 'boolean':                    
                         ret[i] = this[i]; continue;
                     default:
-                        print("unknown type:" + typeof(this[i]));
+                        
+                        print("unknown type: (" + i + ")"  + typeof(this[i]));
+                        this.toJSON = null;q
+                        print(JSON.stringify(this));;
                         Seed.quit();
                    }
             }
@@ -97,10 +100,12 @@ DocTag = XObject.define(
             src = src.trim();
             if (this.title == "cfg" && src.match(/^\([^)]+\)/)) {
                 var m = src.match(/^\(([^)]+)\)/);
+                print(m);
                 if (m[1].match(/\|/)) {
                     var opts = m[1].split(/\|/);
                     this.optvalues = opts;
                     src = src.substring(m[0].length).trim();
+                    print(src);
                     
                     
                 }