]> code.delx.au - gnu-emacs-elpa/commitdiff
hydra.el (hydra--format): Match alnum for the "_..._" syntax
authorOleh Krehel <ohwoeowho@gmail.com>
Tue, 14 Apr 2015 12:29:22 +0000 (14:29 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Tue, 14 Apr 2015 12:29:22 +0000 (14:29 +0200)
Fixes #106

hydra.el

index 39c027cc2f08867cbf34f53c656e379807df6ef5..970716f39cdac20a62e99260c307eda7d875c297 100644 (file)
--- a/hydra.el
+++ b/hydra.el
@@ -456,7 +456,7 @@ The expressions can be auto-expanded according to NAME."
         offset)
     (while (setq start
                  (string-match
-                  "\\(?:%\\( ?-?[0-9]*s?\\)\\(`[a-z-A-Z/0-9]+\\|(\\)\\)\\|\\(?:_\\( ?-?[0-9]*\\)\\([a-z-A-Z~.,;:0-9/|?<>={}*+#]+\\)_\\)"
+                  "\\(?:%\\( ?-?[0-9]*s?\\)\\(`[a-z-A-Z/0-9]+\\|(\\)\\)\\|\\(?:_\\( ?-?[0-9]*\\)\\([[:alnum:]~.,;:/|?<>={}*+#]+\\)_\\)"
                   docstring start))
       (cond ((eq ?_ (aref (match-string 0 docstring) 0))
              (let* ((key (match-string 4 docstring))