From 2a6e58d72ca2051889b5f4887f85006387669178 Mon Sep 17 00:00:00 2001 From: Alexander Shukaev Date: Fri, 25 Jan 2019 02:26:24 +0100 Subject: [PATCH 1/2] Allow colon `:` for symbols in `binding` of `evil-ex-grammar` --- evil-ex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evil-ex.el b/evil-ex.el index 8825d6e7..6cbb4f23 100644 --- a/evil-ex.el +++ b/evil-ex.el @@ -56,7 +56,7 @@ number) (command #'evil-ex-parse-command) (binding - "[~&*@<>=:]+\\|[[:alpha:]_]+\\|!") + "[~&*@<>=:]+\\|[[:alpha:]_:]+\\|!") (emacs-binding "[[:alpha:]-][[:alnum:][:punct:]-]+") (bang From 3742c881aea45accbecd853701dbe521fb64c45e Mon Sep 17 00:00:00 2001 From: Eivind Fonn Date: Thu, 19 Dec 2019 11:25:01 +0100 Subject: [PATCH 2/2] Add test for colon in ex bindings --- evil-tests.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evil-tests.el b/evil-tests.el index 503f12e6..c0d6d8b5 100644 --- a/evil-tests.el +++ b/evil-tests.el @@ -6669,7 +6669,9 @@ if no previous selection") (should (equal (evil-ex-parse "mu4e") '(evil-ex-call-command nil "mu4e" nil))) (should (equal (evil-ex-parse "make-frame") - '(evil-ex-call-command nil "make-frame" nil)))) + '(evil-ex-call-command nil "make-frame" nil))) + (should (equal (evil-ex-parse ":command") + '(evil-ex-call-command nil "command" nil)))) (ert-deftest evil-text-ex-search-offset () "Test for addresses like /base//pattern/"