aboutsummaryrefslogtreecommitdiff
path: root/evil-common.el
diff options
context:
space:
mode:
authorTom Dalziel <tom_dl@hotmail.com>2024-05-06 17:00:18 +0200
committerTom Dalziel <33435574+tomdl89@users.noreply.github.com>2024-05-06 17:05:28 +0200
commita8b28f57f78255378c37c6d5ef1f2c7a45bc499b (patch)
treebfc62a931f58d92f9b5a8a1344b9a4b55d0ceb05 /evil-common.el
parent76667a1a46d896d673f51f7f5782125d06b3a022 (diff)
Backreferences in vim-style regexp
Fixes #1895
Diffstat (limited to 'evil-common.el')
-rw-r--r--evil-common.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-common.el b/evil-common.el
index fd259d6..4397a9c 100644
--- a/evil-common.el
+++ b/evil-common.el
@@ -3608,7 +3608,7 @@ transformations, usually `regexp-quote' or `replace-quote'."
(?` . "`") (?^ . "^")
(?$ . "$") (?| . "\\|")))
-(defconst evil-regexp-magic "[][(){}<>_dDsSxXoOaAlLuUwWyY.*+?=^$`|nrtb]")
+(defconst evil-regexp-magic "[][(){}<>_dDsSxXoOaAlLuUwWyY.*+?=^$`|nrtb0-9]")
(defun evil-transform-vim-style-regexp (regexp)
"Transform vim-style backslash codes to Emacs regexp.