[Top][All Lists]

[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: Thu, 03 Nov 2022 08:36:24 +0200

> From: Yuan Fu <casouri@gmail.com>
> Date: Wed, 2 Nov 2022 18:25:13 -0700
> Cc: João Paulo Labegalini de Carvalho <jaopaulolc@gmail.com>,
>  emacs-devel@gnu.org
> What I ended up doing is to set jit-lock-context-unfontify-pos to the 
> beginning of the string node (aka beginning of region A). Then in a timer 
> jit-lock-context will refontify everything after that position. And I have 
> some measure to break possible infinite recursion (fontify region -> set 
> jit-lock-context-unfontify-pos -> cause refontification -> fontify region -> 
> …).

OK, but beware of the case where region A is very large.  Could
performance suffer in such cases?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]