Skip to content

[FORMATTING] TransactSQL incorrectly formats some block comments, leading to broken statements #747

@wylieconlon

Description

@wylieconlon

Input data

/** block comment **/

Expected Output

/** block comment **/

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**/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions