this.isOptional = false;
this.defaultValue = "";
this.desc = "";
+ this.optvalues = false;
if (typeof src != "undefined") {
this.parse(src);
}
if (Options.LOG) Options.LOG.warn(e);
else throw e;
}
+
+ // if type == @cfg, and matches (|....|...)
+
+ src = str.trim();
+ if (this.title == "cfg" && src.match(/^\([^)]+\)/)) {
+ var m = src.match(/^\(([^)]+)\)/);
+ if (m[1].match(/\|/)) {
+ var opts = m[1].split(/\|/);
+ this.optvalues = opts;
+
+ }
+
+
+ }
+
+
this.desc = src; // whatever is left
// example tags need to have whitespace preserved