GNU bug report logs - #59468
29.0.50; c-ts-mode cannot fontify after macros are encountered

Previous Next

Package: emacs;

Reported by: Po Lu <luangruo <at> yahoo.com>

Date: Tue, 22 Nov 2022 01:52:02 UTC

Severity: normal

Found in version 29.0.50

Full log


Message #29 received at 59468 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: casouri <at> gmail.com, 59468 <at> debbugs.gnu.org
Subject: Re: bug#59468: 29.0.50; c-ts-mode cannot fontify after macros are
 encountered
Date: Wed, 23 Nov 2022 14:53:56 +0200
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  59468 <at> debbugs.gnu.org
> Date: Wed, 23 Nov 2022 15:36:21 +0800
> 
> Yuan Fu <casouri <at> gmail.com> writes:
> 
> > For each of the ERROR nodes, we can look at the skipped tokens inside,
> > and look around with some regex searching.
>                             ^^^^^^^^^^^^^^^
> 
> I thought that is the sort of thing we aim to avoid by using
> tree-sitter.

Would you rather do nothing about these error nodes?

If they happen too frequently, then it would be a real problem for the
language(s) where that happens.  But if they happen relatively infrequently,
then falling back on regexps could be an okay solution, IMO.




This bug report was last modified 2 years and 302 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.