Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/* */ comment at EOL should be attached like a // #107

Closed
sjrd opened this issue Mar 9, 2016 · 0 comments
Closed

/* */ comment at EOL should be attached like a // #107

sjrd opened this issue Mar 9, 2016 · 0 comments

Comments

@sjrd
Copy link

sjrd commented Mar 9, 2016

Original:

  final val BLEND_EQUATION = 0x8009
  final val BLEND_EQUATION_RGB = 0x8009   /* same as BLEND_EQUATION */
  final val BLEND_EQUATION_ALPHA = 0x883D

Scalafmt:

  final val BLEND_EQUATION = 0x8009
  final val BLEND_EQUATION_RGB = 0x8009
  /* same as BLEND_EQUATION */
  final val BLEND_EQUATION_ALPHA = 0x883D

I would like the input to look like this:

  final val BLEND_EQUATION = 0x8009
  final val BLEND_EQUATION_RGB = 0x8009 /* same as BLEND_EQUATION */
  final val BLEND_EQUATION_ALPHA = 0x883D

Of course, that comment should have been a // comment in the first place. But that's no excuse ;) The current reformatting actively harms further readability.

Using

  • 0.1.1
  • default
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

No branches or pull requests

2 participants