Skip to content

Wrong let indentation #308

Closed
Closed
@Malabarba

Description

@Malabarba

This is how clojure-mode indents the following form.

(let [{{{sha :sha} :head} :pull_request,
       {{user :login} :owner, :as repo} :repository} body
       base-analysis (something repo)]
  ...)

It's a pretty complicated destructuring, but the important point is that the indentation engine is indenting base-analysis as if it were part of the map above it, but it's really a whole new let-bind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions