From: João Távora Date: Wed, 3 Feb 2021 00:43:35 +0000 (+0000) Subject: Tweak glob-parsing grammar X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~167 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=14d901c58880f50712585951163bcd7a6567d718;p=emacs.git Tweak glob-parsing grammar Alternative groups {} don't bork on forward slash. * eglot.el (eglot--glob-parse): Tweak {} grammar. GitHub-reference: per https://github.com/joaotavora/eglot/issues/602 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 9944b18a2e5..90d973c6b63 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -2671,7 +2671,7 @@ at point. With prefix argument, prompt for ACTION-KIND." with grammar = '((:** "\\*\\*/?" eglot--glob-emit-**) (:* "\\*" eglot--glob-emit-*) (:? "\\?" eglot--glob-emit-?) - (:{} "{[^][/*{}]+}" eglot--glob-emit-{}) + (:{} "{[^][*{}]+}" eglot--glob-emit-{}) (:range "\\[\\^?[^][/,*{}]+\\]" eglot--glob-emit-range) (:literal "[^][,*?{}]+" eglot--glob-emit-self)) until (eobp)