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

line comments with -- cancel further formatting #151

Closed
PabloRMira opened this issue Apr 3, 2021 · 0 comments · Fixed by #152
Closed

line comments with -- cancel further formatting #151

PabloRMira opened this issue Apr 3, 2021 · 0 comments · Fixed by #152
Assignees
Labels
bug Something isn't working

Comments

@PabloRMira
Copy link
Owner

PabloRMira commented Apr 3, 2021

Describe the bug

Line comments with -- instead of /* */ cancel further formatting

To Reproduce

After applying sql-formatter on the following query

select asdf,
-- some comment
qwer,
qwer2
from table1

we obtain

SELECT asdf
       -- some comment
qwer,
qwer2
from   table1;

Expected behavior

SELECT asdf
       -- some comment
       qwer,
       qwer2
FROM   table1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant