]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Info parser regexp mistake
authorMattias Engdegård <mattiase@acm.org>
Wed, 16 Aug 2023 11:53:33 +0000 (13:53 +0200)
committerMattias Engdegård <mattiase@acm.org>
Wed, 16 Aug 2023 14:55:38 +0000 (16:55 +0200)
* lisp/info.el (Info-split-parameter-string):
The `\sX` syntax construct isn't valid inside character alternatives;
follow the obvious intention.

lisp/info.el

index 035dff66e7580340386ec1c1525087a24f72e19a..463aea93376daaf0dcac1b9cffebc9ebc22ca5c3 100644 (file)
@@ -1587,7 +1587,7 @@ escaped (\\\",\\\\)."
   (let ((start 0)
        (parameter-alist))
     (while (string-match
-           "\\s *\\([^=]+\\)=\\(?:\\([^\\s \"]+\\)\\|\\(?:\"\\(\\(?:[^\\\"]\\|\\\\[\\\"]\\)*\\)\"\\)\\)"
+           "\\s *\\([^=]+\\)=\\(?:\\([^\"[:space:]]+\\)\\|\\(?:\"\\(\\(?:[^\\\"]\\|\\\\[\\\"]\\)*\\)\"\\)\\)"
            parameter-string start)
       (setq start (match-end 0))
       (push (cons (match-string 1 parameter-string)