Skip to content

Add support for multiline results #35 - #37

Open
Eoksni wants to merge 1 commit into
yamadapc:masterfrom
Eoksni:develop
Open

Add support for multiline results #35#37
Eoksni wants to merge 1 commit into
yamadapc:masterfrom
Eoksni:develop

Conversation

@Eoksni

@Eoksni Eoksni commented Jun 26, 2019

Copy link
Copy Markdown

Closes #35.

Example usage:

/**
 * @example
 *   subtract(1, 2)
 *   // => {
 *   // =>   normal: -1,
 *   // =>   reverse: 1
 *   // => }
 */

 function subtract(x, y) {
  return {
    normal: x - y,
    reverse: y - x
  };
}

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 76.963% when pulling 2b57ab9 on Eoksni:develop into ccd6cdb on yamadapc:master.

Comment thread lib/comment-parser.js

for(var i = 0, len = parsedComments.length; i < len; i++) {
if(parsedComments[i].type === 'code') {
if(parsedComments[i].type === 'code' && parsedComments[i].string) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand. It was already supported then, but missing some error handling?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Multiline support

3 participants