Closed quangIO closed 2 years ago
#lang racket/base (provide the-formatter-map) (require fmt/conventions) (define (the-formatter-map s) (case s [("my-define") (format-define-like)] [else #f]))
#lang racket (require (for-syntax syntax/parse)) (define-syntax (my-define stx) (syntax-parse stx [(_ (name:id args ...) body ...) #'(define name (λ (args ...) body ...))]))
after raco fmt file.std (notice the extra newline after stx)
raco fmt file.std
#lang racket (require (for-syntax syntax/parse)) (define-syntax (my-define stx ) (syntax-parse stx [(_ (name:id args ...) body ...) #'(define name (λ (args ...) body ...))]))
Thanks for the report!
.fmt.rkt
file.rkt
after
raco fmt file.std
(notice the extra newline after stx)