Skip to content

Parentheses inside comments are not ignored #1

Closed
@Holzhaus

Description

I ran v0.1.0 against some sample code and it reformatted the code like this:

             const y_dominant = Math.abs(diff_y) > Math.abs(diff_x);
             let dist = Math.sqrt(diff_x * diff_x + diff_y * diff_y);
             // If y is dominant, then treat an increase in dy as negative (y is
-            // pointed downward). Otherwise, if y is not dominant and x has
+                // pointed downward). Otherwise, if y is not dominant and x has
             // decreased, then treat it as negative.
             if ((y_dominant && diff_y > 0) || (!y_dominant && diff_x < 0))

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions