Skip to content

Only add newline before initial group of comment lines in codegen#3098

Merged
paf31 merged 1 commit intopurescript:masterfrom
brandonhamilton:emit-comment-formatting
Oct 1, 2017
Merged

Only add newline before initial group of comment lines in codegen#3098
paf31 merged 1 commit intopurescript:masterfrom
brandonhamilton:emit-comment-formatting

Conversation

@brandonhamilton
Copy link
Copy Markdown
Contributor

Fixes #3096.

Most Purescript code tends to be commented using multiple Line comments rather than block comments. This change removes the current behaviour of adding additional newlines between each line comment, producing more readable javascript comments when compiling with comments.

I am not really sure how to implement a test for this change?

Copy link
Copy Markdown
Contributor

@paf31 paf31 left a comment

Choose a reason for hiding this comment

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

Thanks!

@paf31 paf31 merged commit 2bce858 into purescript:master Oct 1, 2017
jutaro pushed a commit to mgmeier/purescript that referenced this pull request Mar 12, 2018
@brandonhamilton brandonhamilton deleted the emit-comment-formatting branch April 29, 2018 14:13
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.

2 participants