sloganking / scfmt

A code formatter for structured comments
MIT License
0 stars 0 forks source link

multi-line comments mess up auto tab_spaces detection #41

Closed sloganking closed 2 years ago

sloganking commented 2 years ago

determine_whitespace_type() may return in incorrect num of spaces.

|The multi line comment below leaves 1 space in front of each star

/*
 *
 */
    let a = 0

multi-line comments starting without *s may be incorrectly interpreted as indented code

/*
  asdf
*/
    let a = 0
sloganking commented 2 years ago

This is fixed. though I think sadly the solution significantly slowed down formatting. Possibly 3x.