We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86fd67c commit 1a7e8c8Copy full SHA for 1a7e8c8
src/iterateJsdoc.js
@@ -45,8 +45,10 @@ export default (iterator) => {
45
return;
46
}
47
48
- const jsdoc = commentParser('/*' + jsdocNode.value + '*/', {
49
- // @see https://github.com/yavorskiy/comment-parser/issues/21
+ // Preserve JSDoc block start/end indentation.
+ const indent = _.repeat(' ', jsdocNode.loc.start.column);
50
+ const jsdoc = commentParser(indent + '/*' + jsdocNode.value + indent + '*/', {
51
+ // @see https://github.com/yavorskiy/comment-parser/issues/21
52
parsers: [
53
commentParser.PARSERS.parse_tag,
54
commentParser.PARSERS.parse_type,
0 commit comments