mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
jsdoc: support @true tag.
This commit is contained in:
parent
2f67552791
commit
b98f69a75c
1 changed files with 7 additions and 0 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue