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

Formatting: semicolon inline comment gets pushed to previous line #136

Open
helixbass opened this issue Dec 10, 2019 · 1 comment
Open

Comments

@helixbass
Copy link
Owner

This:

while a
  ; # eslint-disable-line no-empty

is getting formatted like:

while a
  # eslint-disable-line no-empty
  ;

And more problematic, this:

if a
  ; # c

is getting formatted like:

if a
  # c

which is a parse error (not sure why the semicolon is disappearing eg whether it's on the Coffeescript AST side or the Prettier side)

@helixbass
Copy link
Owner Author

Also this:

switch
  when b
    ; # continue

is getting formatted like:

switch
  when b # continue
    ;

@helixbass helixbass changed the title Bug: semicolon inline comment gets pushed to previous line or semicolon gets removed Formatting: semicolon inline comment gets pushed to previous line Dec 31, 2019
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

1 participant