rewrite-clj
rewrite-clj copied to clipboard
Rewrite Clojure code and edn
Originally raised by me as https://github.com/lread/rewrite-cljc-playground/issues/14 rewrite-cljc makes use of asciidoctor features that do not currently have support on on cljdoc. Push along cljdoc/cljdoc#334 so that reading rewrite-cljc docs on...
**Version** 1.1.47 **Platform** All **Symptom** The `:row` and `:col` map entries are not always populated in parsing exceptions data. **Exhibit 1** Case where `:row` and `:col` are absent for exception...
## Problem/Opportunity Currently `rewrite-clj.zip/find-last-by-pos` requires a position tracking zipper. The position tracking zipper tracks and updates positions as the zipper is changed. A use case came on Slack today where...
**Version** version 1.1.48 **Symptom** Cannot slurp or barf, forward or backward in a syntax quoted element `|` indicating the cursor, see: ```clojure [:left '[foo| bar] :right] ``` Related is trying...
From @borkdude in #rewrite-clj on Slack: ``` $ bb -e "(require '[rewrite-clj.zip :as z]) (-> (z/of-node (rewrite-clj.node/coerce '(+ 1 2 3))) z/down z/right z/sexpr)" 1 ```
Both [edamame](https://github.com/borkdude/edamame) and rewrite-clj parse Clojure code. Under the hood, they both use [clojure tools reader](https://github.com/clojure/tools.reader). Occasionally, @borkdude and I wonder if the parsing code could be shared more. For...
I'm digging into the `rewrite-clj/paredit` ns these days. To help my future self and others: - update docstrings to be really clear (if not already) - explain how to use...
**Version** 1.1.49 **Platform** All **Symptom** If zipper is located on whitespace, `wrap-around` returns nil. **Reproduction** ```clojure (-> "1\n2" z/of-string z/right* (pe/wrap-around :vector)) ``` **Actual behavior** ```clojure ;; => nil ```...
Sexpr-ing a tagged literal results in an expression like `(read-string "#foo/bar 1)` . Imo this should be fully qualified to prevent clashes with referred vars from elsewhere. PR incoming.