jsdoc: support @true tag.

This commit is contained in:
Jonathan Puckey 2011-05-27 18:40:47 +02:00
parent 2f67552791
commit b98f69a75c

View file

@ -293,6 +293,13 @@ function processInlineTags(str, param) {
return '<tt>' + code + '</tt>';
}
);
// {@true ...} -> true if.. false otherwise..
str = str.replace(/\{@true[\s]([^}]+)\}/gi,
function(match, text) {
return '<tt>true</tt> ' + text + ', <tt>false</tt> otherwise';
}
);
var lineBreak = java.lang.System.getProperty('line.separator');