You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clojure-mode should indent match forms (from core.match) the same as M-x cider-format-region or M-x lsp-format-region.
For example:
(doseq [n (range1101)]
(println
(match [(mod n 3) (mod n 5)]
[00] "FizzBuzz"
[0 _] "Fizz"
[_ 0] "Buzz":else n)))
Actual behavior
clojure-mode indents match forms incorrectly.
(doseq [n (range1101)]
(println
(match [(mod n 3) (mod n 5)]
[00] "FizzBuzz"
[0 _] "Fizz"
[_ 0] "Buzz":else n)))
Steps to reproduce the problem
Use the code from the above example in a Clojure(Script) file and run indent-for-tab-command using TAB.
Environment & Version information
clojure-mode version
clojure-mode (version 5.13.0)
Emacs version
27.1
Operating system
macOS 11.5.2 (Big Sur)
Commentary
I'm happy to submit a PR with relevant indentation tests to fix this, but just wanted to make sure it's something that should be added to clojure-mode.
The text was updated successfully, but these errors were encountered:
Expected behavior
clojure-mode
should indentmatch
forms (fromcore.match
) the same asM-x cider-format-region
orM-x lsp-format-region
.For example:
Actual behavior
clojure-mode
indentsmatch
forms incorrectly.Steps to reproduce the problem
Use the code from the above example in a Clojure(Script) file and run
indent-for-tab-command
using TAB.Environment & Version information
clojure-mode version
Emacs version
27.1
Operating system
macOS 11.5.2 (Big Sur)
Commentary
I'm happy to submit a PR with relevant indentation tests to fix this, but just wanted to make sure it's something that should be added to
clojure-mode
.The text was updated successfully, but these errors were encountered: