oakmac / standard-clojure-style-js

Standard Clojure Style in JavaScript
ISC License
33 stars 1 forks source link

Reader tagged literals result in incorrect alignment #110

Closed axelarge closed 2 weeks ago

axelarge commented 2 weeks ago

Please see screenshot:

CleanShot 2024-10-09 at 12 59 44@2x

Input:

(-> #js [(one-promise)
         (another-promise)]
    (js/Promise.all)
    (.then (fn [_])))

(-> #uuid "15adfdf0-2e6b-410e-a489-f71d1dd17642"
    str)

I would expect the code to be unchanged after formatting, but everything gets aligned to one character after #

(-> #js [(one-promise)
         (another-promise)]
     (js/Promise.all)
     (.then (fn [_])))

(-> #uuid "15adfdf0-2e6b-410e-a489-f71d1dd17642"
     str)

I would guess that this is also what's causing #108.

oakmac commented 2 weeks ago

Fixed with PR-118