]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak glob-parsing grammar
authorJoão Távora <joaotavora@gmail.com>
Wed, 3 Feb 2021 00:43:35 +0000 (00:43 +0000)
committerJoão Távora <joaotavora@gmail.com>
Wed, 3 Feb 2021 00:43:35 +0000 (00:43 +0000)
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

lisp/progmodes/eglot.el

index 9944b18a2e54731d6889c2f4f7575458d98b961c..90d973c6b63be0901723d56461a07d80ab6235b9 100644 (file)
@@ -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)