We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Input data
/** block comment **/
Expected Output
Actual Output
/ * * block comment * * /
Usage
This example reproduces on the sql-formatter playground. The only option that fixes the bug is enabling "dense operators", which produces this output:
/**block comment**/
The text was updated successfully, but these errors were encountered:
Thanks for reporting.
Looks like this bug is related to the parsing of nested block-comments. Affects Transact-SQL, Postgres, DB2 for IMBi.
The the final **/ seems to trigger it:
**/
/* block comment **/
results in:
/ * block comment ** /
Sorry, something went wrong.
Fix parsing of /** **/ nested block comments
862f7d3
Fixes #747
Fix parsing of /** **/ nested block comments (#751)
b0e07e0
Don't try to be too clever with matching lots of characters with that funky MIDDLE regex. Just match a single char. Fixes #747
The fix for this is now out in 15.3.2
Successfully merging a pull request may close this issue.
Input data
/** block comment **/
Expected Output
/** block comment **/
Actual Output
Usage
This example reproduces on the sql-formatter playground. The only option that fixes the bug is enabling "dense operators", which produces this output:
/**block comment**/
The text was updated successfully, but these errors were encountered: