Skip to content

Buggy formatting of dotted pairs #82

Description

@jackfirth

This code:

(define (f stx)
  (syntax-case stx (module)
    [(module . rest) (void)]))

Is currently reformatted by fmt to this:

(define (f stx)
  (syntax-case stx (module)
    [(module . rest
       )
     (void)]))

As discussed here, that seems to be because fmt thinks (module . rest) is a normal module form and . is the module's name. The issue isn't specific to module; it probably affects all uses of dotted pairs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions