diff options
author | João Távora <joaotavora@gmail.com> | 2024-07-15 19:13:12 +0100 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2024-07-17 01:21:59 +0100 |
commit | d7b93f63f6923f13fe999d12c4f0ba1dbf7160a8 (patch) | |
tree | 751ea367ebb993b7a0961d9d2dcdc4057854ee69 /lisp/emacs-lisp/lisp.el | |
parent | 7cda30602fcaeecd0072d980a99156812fc7f086 (diff) | |
download | emacs-d7b93f63f6923f13fe999d12c4f0ba1dbf7160a8.tar.gz emacs-d7b93f63f6923f13fe999d12c4f0ba1dbf7160a8.tar.bz2 emacs-d7b93f63f6923f13fe999d12c4f0ba1dbf7160a8.zip |
Eglot: supported nested {} patterns in globs
The tailwindcss-language server issues patterns like this:
**/{tailwind,tailwind.config,tailwind.*.config,\
tailwind.config.*}.{js,cjs,ts,mjs}
Notive the nested "*" blob inside the the {} group.
Eglot used to reject them in 'workspace/didChangeWatchedFiles' requests,
responding with "Internal Error". This could confuse some servers. Now
I've done some changes to the state machine generation and it supports
them.
* lisp/progmodes/eglot.el (eglot--glob-parse): Relax parser.
(eglot--glob-fsm): New helper.
(eglot--glob-compile, eglot--glob-emit-{}): Use it.
* test/lisp/progmodes/eglot-tests.el (eglot-test-glob-test):
Uncomment some test cases.
Github-reference: https://github.com/joaotavora/eglot/issues/1403
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions