unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Cc: Yuan Fu <casouri@gmail.com>
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	[thread overview]
Message-ID: <jwvk02arlmk.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20221229195325.91363C004B0@vcs2.savannah.gnu.org> (Yuan Fu's message of "Thu, 29 Dec 2022 14:53:25 -0500 (EST)")

>     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




           reply	other threads:[~2022-12-29 20:40 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20221229195325.91363C004B0@vcs2.savannah.gnu.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvk02arlmk.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=casouri@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).