X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FDocTag.js;h=e5449ab1f2e77a56b988fc1ae6f06de6f219f841;hp=296eea8e872a437831fed050829f1f3862ec9241;hb=f97b7efe182b819e8f6143b7aeb9fd45c7ab75f0;hpb=7b90a14b811e7d787afa5ffde75baac2ae1e17d2 diff --git a/JSDOC/DocTag.js b/JSDOC/DocTag.js index 296eea8..e5449ab 100644 --- a/JSDOC/DocTag.js +++ b/JSDOC/DocTag.js @@ -117,7 +117,7 @@ DocTag = XObject.define( if (typeof src != "string") throw "src must be a string not "+(typeof src); if (src.match(/^\s*\{/)) { - var typeRange = src.balance("{", "}"); + var typeRange = this.balance(src,"{", "}"); if (typeRange[1] == -1) { throw "Malformed comment tag ignored. Tag type requires an opening { and a closing }: "+src; } @@ -143,7 +143,7 @@ DocTag = XObject.define( // is optional? if (src.charAt(0) == "[") { - var nameRange = src.balance("[", "]"); + var nameRange = this.balance(src,"[", "]"); if (nameRange[1] == -1) { throw "Malformed comment tag ignored. Tag optional name requires an opening [ and a closing ]: "+src; } @@ -169,7 +169,7 @@ DocTag = XObject.define( } return src; - } + }, balance : function(str, open, close) { var i = 0;