akalongman/sublimetext-codeformatter

LESS Comments not staying on new line after mixins

Opened this issue · 1 comments

User Settings:

"codeformatter_css_options":
    {
        "syntaxes": "css,less",
        "format_on_save": false,
        "indent_size": 2, 
        "indent_char": " ",
        "indent_with_tabs": true, 
        "selector_separator_newline": true, 
        "end_with_newline": true, 
        "newline_between_rules": true,
        "eol": "\n" 
    }

When formatting a file like this example, it turns into the second example.

.class-one {
  .nested {
    .mixin();
    // Some comment
    width: 100%;
  }
}

turns into:

.class-one {
  .nested {
    .mixin(); // Some comment
    width: 100%;
  }
}

Not sure when this started happening but I just noticed it this week. Obviously if my comment is explaining what's below it, I'd like it to stay below the mixins, not be moved beside them. If there's something wrong with my settings, just let me know but I didn't see anything obvious.

UPDATE: Looks like it's happening to more than just mixins. Here's a screenshot of one an inline git diff to show what's happening:
gitDiffFormat.png