sloganking / scfmt

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

convert_to_brackets() doesn't handle EOF #7

Closed sloganking closed 2 years ago

sloganking commented 2 years ago
// comment that will never get auto closed
    let a = 1

The comment in the above code will never get assigned a closing bracket, because there is no line with 0 depth after it. when calling convert_to_brackets(), EOF should trigger closing all still open brackets.