Skip to content

Incorrect indentation: cond-> with reader tagged map #511

@poernahi

Description

@poernahi

Expected behavior

(cond-> #:a{:b 1}
  x 1)

Actual behavior

(cond-> #:a{:b 1}
        x 1)

Steps to reproduce the problem

cond-> form with reader tagged map as the first argument

Environment & Version information

Tested against master 1ccef7b

clojure-mode version information

5.10.0

Emacs version

26.1

Operating system

OSX Mojave

Additional note

Test case

(check-indentation cond-indentation-with-reader
  "
(cond-> #:a{:b 1}
|x 1)"
  "
(cond-> #:a{:b 1}
  |x 1)")

Test output

............................................Test indentation/cond-indentation-with-reader backtrace:

Test indentation/cond-indentation-with-reader condition:

    (ert-test-failed
     ((should
       (equal expected-state
	      (buffer-string)))
      :form
      (equal "
(cond-> #:a{:b 1}
  x 1)" "
(cond-> #:a{:b 1}
        x 1)")
      :value nil :explanation
      (arrays-of-different-length 25 31 "
(cond-> #:a{:b 1}
  x 1)" "
(cond-> #:a{:b 1}
        x 1)" first-mismatch-at 21)))

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