Function: clojure--read-coll

clojure--read-coll is a byte-compiled function defined in clojure-mode.el.

Signature

(clojure--read-coll TYPE START END &optional PREFIX-LENGTH)

Documentation

Read the collection of TYPE at START, after its PREFIX-LENGTH characters.

Don't go past END.

Source Code

;; Defined in ~/.emacs.d/elpa/clojure-mode-20261103.1226/clojure-mode.el
(defun clojure--read-coll (type start end &optional prefix-length)
  "Read the collection of TYPE at START, after its PREFIX-LENGTH characters.
Don't go past END."
  (goto-char (+ start (or prefix-length 0)))
  (skip-chars-forward "^([{" end)
  (forward-char)
  (let ((children (clojure--read-forms end)))
    (when (< (point) end)
      (forward-char))
    (clojure--make-form :type type :start start :end (point) :children children)))