Variable: clojure--comment-macro-regexp

clojure--comment-macro-regexp is a variable defined in clojure-mode.el.

Value

"\\(?:#_ *\\)+\\(?1:[^ ]\\)"

Documentation

Regexp matching the start of a comment sexp.

The beginning of match-group 1 should be before the sexp to be marked as a comment. The end of sexp is found with clojure-forward-logical-sexp.

Source Code

;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
;;; #_ comments font-locking
;; Code heavily borrowed from Slime.
;; https://github.com/slime/slime/blob/master/contrib/slime-fontifying-fu.el#L186
(defvar clojure--comment-macro-regexp
  (rx (seq (+ (seq "#_" (* " ")))) (group-n 1 (not (any " "))))
  "Regexp matching the start of a comment sexp.
The beginning of match-group 1 should be before the sexp to be
marked as a comment.  The end of sexp is found with
`clojure-forward-logical-sexp'.")