russellw / scheme-format

Format Scheme source code
MIT License
8 stars 2 forks source link

bug with comments at the end of lines of code #3

Open masukomi opened 7 years ago

masukomi commented 7 years ago

best explained by example:

take this...

(if #t
  (begin
    (print "trueeeeee")
  ); end begin
)

run it through scheme-format and you end up with this

(if #t
 (begin
  (print "trueeeeee"))

 ; end begin)

which turns the last parens into a comment. :(

russellw commented 7 years ago

does look like a legitimate bug! I'm not actively maintaining this program at this stage, but would happily accept pull requests, or if someone wants to fork it that's fine with me too.