Function: clojure--alias-usage-regexp

clojure--alias-usage-regexp is a byte-compiled function defined in clojure-mode.el.

Signature

(clojure--alias-usage-regexp ALIAS)

Documentation

Regexp for matching usages of ALIAS in qualified symbols, keywords and maps.

When nil, match all namespace usages. The first match-group is the alias.

Source Code

;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
;;; Renaming ns aliases

(defun clojure--alias-usage-regexp (alias)
  "Regexp for matching usages of ALIAS in qualified symbols, keywords and maps.
When nil, match all namespace usages.
The first match-group is the alias."
  (let ((alias (if alias (regexp-quote alias) clojure--sym-regexp)))
    (concat "#::\\(?1:" alias "\\)[ ,\r\n\t]*{"
            "\\|"
            "\\_<\\(?1:" alias "\\)/")))