diff options
| author | João Távora | 2025-12-18 22:41:12 +0000 |
|---|---|---|
| committer | João Távora | 2025-12-19 00:48:38 +0000 |
| commit | ee481d30f902b20f7a7fdf41a81ccf139ec440e1 (patch) | |
| tree | 214138e30e10b26c98001cd699bde8534b7bfa6d | |
| parent | 83e8acf19ac8c435fbe9767c7223f730897e1780 (diff) | |
| download | emacs-ee481d30f902b20f7a7fdf41a81ccf139ec440e1.tar.gz emacs-ee481d30f902b20f7a7fdf41a81ccf139ec440e1.zip | |
Eglot: remove "face" suffix for semtok-specific faces
* lisp/progmodes/eglot.el (eglot--semtok-define-things)
(eglot--semtok-decode-token): Remove "face" suffix for semtok faces.
| -rw-r--r-- | lisp/progmodes/eglot.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 553495c7702..f6a7be6ddf0 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el | |||
| @@ -4677,7 +4677,7 @@ If NOERROR, return predicate, else erroring function." | |||
| 4677 | ;;; Semantic tokens | 4677 | ;;; Semantic tokens |
| 4678 | (defmacro eglot--semtok-define-things () | 4678 | (defmacro eglot--semtok-define-things () |
| 4679 | (cl-flet ((def-it (name def) | 4679 | (cl-flet ((def-it (name def) |
| 4680 | `(defface ,(intern (format "eglot-semantic-%s-face" name)) | 4680 | `(defface ,(intern (format "eglot-semantic-%s" name)) |
| 4681 | '((t (:inherit ,def))) | 4681 | '((t (:inherit ,def))) |
| 4682 | ,(format "Face for painting a `%s' LSP semantic token" name) | 4682 | ,(format "Face for painting a `%s' LSP semantic token" name) |
| 4683 | :group 'eglot-semantic-fontification))) | 4683 | :group 'eglot-semantic-fontification))) |
| @@ -4715,10 +4715,10 @@ If NOERROR, return predicate, else erroring function." | |||
| 4715 | when (cl-plusp (logand (cdr tok) (ash 1 j))) | 4715 | when (cl-plusp (logand (cdr tok) (ash 1 j))) |
| 4716 | collect m into names | 4716 | collect m into names |
| 4717 | and when (member m eglot-semantic-token-modifiers) | 4717 | and when (member m eglot-semantic-token-modifiers) |
| 4718 | collect (intern (format "eglot-semantic-%s-face" m)) into faces | 4718 | collect (intern (format "eglot-semantic-%s" m)) into faces |
| 4719 | finally | 4719 | finally |
| 4720 | (when (member tname eglot-semantic-token-types) | 4720 | (when (member tname eglot-semantic-token-types) |
| 4721 | (push (intern (format "eglot-semantic-%s-face" tname)) faces)) | 4721 | (push (intern (format "eglot-semantic-%s" tname)) faces)) |
| 4722 | (cl-return (cons (cons tname names) faces)))) | 4722 | (cl-return (cons (cons tname names) faces)))) |
| 4723 | semtok-cache) | 4723 | semtok-cache) |
| 4724 | probe)))) | 4724 | probe)))) |