[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-29 558b59d81b 2/2: Add color fontification in css-ts-mode (bug
From: |
Stefan Monnier |
Subject: |
Re: emacs-29 558b59d81b 2/2: Add color fontification in css-ts-mode (bug#60405) |
Date: |
Thu, 29 Dec 2022 15:40:07 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> Add color fontification in css-ts-mode (bug#60405)
>
> * lisp/textmodes/css-mode.el (css-ts-mode): Add color fontification
> and syntax-propertize-function.
> ---
> lisp/textmodes/css-mode.el | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
> index 19f5fa303f..e8d9725948 100644
> --- a/lisp/textmodes/css-mode.el
> +++ b/lisp/textmodes/css-mode.el
> @@ -1804,11 +1804,15 @@ can also be used to fill comments.
> :syntax-table css-mode-syntax-table
> (when (treesit-ready-p 'css)
> ;; Borrowed from `css-mode'.
> + (setq-local syntax-propertize-function
> + css-syntax-propertize-function)
It's not clear to me why we need to set `syntax-propertize-function`
here, so I think it deserves a comment.
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: emacs-29 558b59d81b 2/2: Add color fontification in css-ts-mode (bug#60405),
Stefan Monnier <=