unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: emacs-29 558b59d81b 2/2: Add color fontification in css-ts-mode (bug#60405)
       [not found] ` <20221229195325.91363C004B0@vcs2.savannah.gnu.org>
@ 2022-12-29 20:40   ` Stefan Monnier
  0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2022-12-29 20:40 UTC (permalink / raw)
  To: emacs-devel; +Cc: Yuan Fu

>     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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-29 20:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <167234360508.10049.9573467005634789859@vcs2.savannah.gnu.org>
     [not found] ` <20221229195325.91363C004B0@vcs2.savannah.gnu.org>
2022-12-29 20:40   ` emacs-29 558b59d81b 2/2: Add color fontification in css-ts-mode (bug#60405) Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).