mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 04:53:28 +02:00
Change JSDoc plugin to use "/*@jsdoc" tags instead of "/**jsdoc"
So as not to clash with Doxygen.
This commit is contained in:
parent
3020123459
commit
bd812e58aa
1 changed files with 3 additions and 3 deletions
|
@ -83,13 +83,13 @@ exports.handlers = {
|
|||
// load entire file into a string
|
||||
var data = fs.readFileSync(path, "utf8");
|
||||
|
||||
// this regex searches for blocks starting with /**jsdoc and end with */
|
||||
var reg = /(\/\*\*jsdoc(.|[\r\n])*?\*\/)/gm;
|
||||
// this regex searches for blocks starting with /*@jsdoc and end with */
|
||||
var reg = /(\/\*@jsdoc(.|[\r\n])*?\*\/)/gm;
|
||||
var matches = data.match(reg);
|
||||
if (matches) {
|
||||
// add to source, but strip off c-comment asterisks
|
||||
e.source += matches.map(function (s) {
|
||||
return s.replace('/**jsdoc', '/**');
|
||||
return s.replace('/*@jsdoc', '/**');
|
||||
}).join('\n');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue