projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7b90a14
)
JSDOC/DocTag.js
author
Alan Knowles
<alan@akkbhome.com>
Tue, 6 Jul 2010 23:41:03 +0000
(07:41 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Tue, 6 Jul 2010 23:41:03 +0000
(07:41 +0800)
JSDOC/DocTag.js
patch
|
blob
|
history
diff --git
a/JSDOC/DocTag.js
b/JSDOC/DocTag.js
index
296eea8
..
e5449ab
100644
(file)
--- 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*\{/)) {
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;
}
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) == "[") {
// 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;
}
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;
}
return src;
- }
+ }
,
balance : function(str, open, close) {
var i = 0;
balance : function(str, open, close) {
var i = 0;