[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59468: 29.0.50; c-ts-mode cannot fontify after macros are encountere
From: |
Eli Zaretskii |
Subject: |
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@yahoo.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, 59468@debbugs.gnu.org
> Date: Wed, 23 Nov 2022 15:36:21 +0800
>
> Yuan Fu <casouri@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.
bug#59468: 29.0.50; c-ts-mode cannot fontify after macros are encountered, Yuan Fu, 2022/11/23
bug#59468: 29.0.50; c-ts-mode cannot fontify after macros are encountered, Yuan Fu, 2022/11/23
bug#59468: 29.0.50; c-ts-mode cannot fontify after macros are encountered, Po Lu, 2022/11/25