js-beautify icon indicating copy to clipboard operation
js-beautify copied to clipboard

function * fn() {} -> function* fn() {}

Open mathieug opened this issue 8 years ago • 5 comments

Since I've updated from 1.5.1 to 1.6.2, I've this behaviour: function * fn() {} becomes function* fn() {}

mathieug avatar Mar 29 '16 19:03 mathieug

The issue appears in v1.5.2.

mathieug avatar Mar 30 '16 09:03 mathieug

Hello @bitwiseman. Any news? I tried to read the code and fix this issue myself but it's really not easy.

mathieug avatar Jun 15 '16 09:06 mathieug

This behavior is actually by design per #428. Adding the ability to control the space around the * is a bit more involved. I'm going to have to push this to the next release.

See #920. The changes made to fix that would be where changes would need to start.

bitwiseman avatar Aug 29 '16 22:08 bitwiseman

Hello @bitwiseman, any news? Do we just want to add a condition around the one added on 98b3c53657c7052aecee0b326832a7f30b2bc4c3?

mathieug avatar Sep 20 '16 08:09 mathieug

@mathieug - I've been too busy to get to this (obviously). The project could really use any help you can offer. If you have time to submit a PR with tests that would be great. Thanks!

bitwiseman avatar Dec 09 '16 21:12 bitwiseman