Function: evil-get-magic
evil-get-magic is a byte-compiled function defined in evil-common.el.
Signature
(evil-get-magic MAGIC)
Documentation
Return a regexp matching the magic characters according to MAGIC.
Depending on the value of MAGIC the following characters are
considered magic.
t [][{}*+?.&~$^
nil [][{}*+?$^
very-magic not 0-9A-Za-z_
very-nomagic empty.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-get-magic (magic)
"Return a regexp matching the magic characters according to MAGIC.
Depending on the value of MAGIC the following characters are
considered magic.
t [][{}*+?.&~$^
nil [][{}*+?$^
`very-magic' not 0-9A-Za-z_
`very-nomagic' empty."
(cond
((eq magic t) "[][}{*+?.&~$^]")
((eq magic 'very-magic) "[^0-9A-Za-z_]")
((eq magic 'very-nomagic) "\\\\")
(t "[][}{*+?$^]")))