[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Initial fontification in sh-mode with tree-sittter
From: |
Eli Zaretskii |
Subject: |
Re: Initial fontification in sh-mode with tree-sittter |
Date: |
Tue, 01 Nov 2022 09:13:31 +0200 |
> From: Yuan Fu <casouri@gmail.com>
> Date: Mon, 31 Oct 2022 17:25:01 -0700
> Cc: João Paulo Labegalini de Carvalho <jaopaulolc@gmail.com>,
> emacs-devel@gnu.org
>
> > Curiously, as soon as I press C-l, the text gets fontified with the
> > string face.
>
> I think that’s just jit-lock & redisplay doing funny stuff. If you set
> treesit--font-lock-verbose to t, it should log that appropriate faces are
> applied when you insert the quote.
Which means you don't play by redisplay's rules in this case. When
Lisp code changes faces, it should remove the 'fontified' property
from the text where faces changed. Does your code do that?
- Re: Initial fontification in sh-mode with tree-sittter,
Eli Zaretskii <=
- Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu, 2022/11/01
- Re: Initial fontification in sh-mode with tree-sittter, Eli Zaretskii, 2022/11/01
- Re: Initial fontification in sh-mode with tree-sittter, João Paulo Labegalini de Carvalho, 2022/11/03
- Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu, 2022/11/03
- Re: Initial fontification in sh-mode with tree-sittter, João Paulo Labegalini de Carvalho, 2022/11/04
- Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu, 2022/11/04