sorawee / fmt

A code formatter for Racket
Other
72 stars 6 forks source link

Function argumets formatting #48

Closed ursi closed 8 months ago

ursi commented 8 months ago

1.

;; test.rkt
(lambda (#:key x #:word y) 1)

raco fmt --width 25 test.rkt got

(lambda (#:key x
               #:word y)
  1)

expected

(lambda (#:key x
         #:word y)
  1)

2.

;; test.rkt
(lambda (a b c #:key x #:word y) 1)

raco fmt --width 25 test.rkt got

(lambda (a b
           c
           #:key x
           #:word y)
  1)

expected

(lambda (a
         b
         c
         #:key x
         #:word y)
  1)
sorawee commented 8 months ago

Thanks for the report!