Function: clojure--read-forms

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

Signature

(clojure--read-forms END)

Documentation

Read the forms after point, up to a closing bracket or END.

The comments among them count, as comment forms.

Source Code

;; Defined in ~/.emacs.d/elpa/clojure-mode-20261103.1226/clojure-mode.el
(defun clojure--read-forms (end)
  "Read the forms after point, up to a closing bracket or END.
The comments among them count, as `comment' forms."
  (let (forms form)
    (while (setq form (if (progn (skip-chars-forward " \t\n\r\f," end)
                                 (and (< (point) end) (eq (char-after) ?\;)))
                          (let ((start (point)))
                            (forward-line 1)
                            (clojure--make-form :type 'comment :start start :end (point)))
                        (clojure--read-form end)))
      (push form forms))
    (nreverse forms)))