From b98f69a75ca0b56936b458869419cf6b9bcdf897 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Fri, 27 May 2011 18:40:47 +0200 Subject: [PATCH] jsdoc: support @true tag. --- build/jsdoc-toolkit/templates/jsdoc/publish.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/jsdoc-toolkit/templates/jsdoc/publish.js b/build/jsdoc-toolkit/templates/jsdoc/publish.js index 338650cc..904ff326 100644 --- a/build/jsdoc-toolkit/templates/jsdoc/publish.js +++ b/build/jsdoc-toolkit/templates/jsdoc/publish.js @@ -293,6 +293,13 @@ function processInlineTags(str, param) { return '' + code + ''; } ); + + // {@true ...} -> true if.. false otherwise.. + str = str.replace(/\{@true[\s]([^}]+)\}/gi, + function(match, text) { + return 'true ' + text + ', false otherwise'; + } + ); var lineBreak = java.lang.System.getProperty('line.separator');