[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cc-mode fontification feels random
From: |
Eli Zaretskii |
Subject: |
Re: cc-mode fontification feels random |
Date: |
Sat, 12 Jun 2021 11:13:49 +0300 |
> From: Daniel Colascione <dancol@dancol.org>
> CC: <spacibba@aol.com>, <acm@muc.de>, <rudalics@gmx.at>, <rms@gnu.org>,
> <emacs-devel@gnu.org>
> Date: Sat, 12 Jun 2021 01:03:03 -0700
>
> >> Yes, there are some technical disadvantages to tree-sitter, indeed.
> >> None of them make it unusable, but they do make it less convenient for
> >> ELisp hackers and Emacs users. So it's not a perfect solution, but
> >> I don't think that should mean we don't want it in our toolbox.
> >
> > I agree that these issues shouldn't prevent us from trying to use TS,
> > at least as an option.
>
> Sure, but it'd be nice to package TS in such a way that it becomes more
> idiomatically lispy, at least if TS becomes the primary fontification
> engine for some modes. At the very least, it should be possible for users
> to apply ad hoc fontification on top of whatever TS supports.
I agree. Do you consider these goals impractical for some reason? If
not, then (assuming we otherwise like the results of using TS in
Emacs) we could work towards those goals as followup.
> And how could something like TS work with, say, bison and flex files
> without fully general multi-mode support (which we also lack)?
Good question. Shouldn't limiting TS to the relevant portions of
buffer text provide the solution? If not, perhaps we should ask the
TS folks what they suggest.
- Re: cc-mode fontification feels random, (continued)
- Re: cc-mode fontification feels random, Jim Porter, 2021/06/10
- Re: cc-mode fontification feels random, Stefan Monnier, 2021/06/10
- Re: cc-mode fontification feels random, Ergus, 2021/06/11
- Re: cc-mode fontification feels random, Stefan Monnier, 2021/06/11
- Re: cc-mode fontification feels random, Daniel Colascione, 2021/06/11
- Re: cc-mode fontification feels random, Stefan Monnier, 2021/06/11
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/12
- Re: cc-mode fontification feels random, Daniel Colascione, 2021/06/12
- Re: cc-mode fontification feels random,
Eli Zaretskii <=
- Re: cc-mode fontification feels random, Stefan Monnier, 2021/06/12
- Re: cc-mode fontification feels random, Daniele Nicolodi, 2021/06/12
- Re: cc-mode fontification feels random, tomas, 2021/06/12
- Re: cc-mode fontification feels random, Stefan Monnier, 2021/06/12
- Re: cc-mode fontification feels random, Daniel Colascione, 2021/06/09
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/09
- Re: cc-mode fontification feels random, Alan Mackenzie, 2021/06/09
- Re: cc-mode fontification feels random, Stefan Monnier, 2021/06/09
- Re: cc-mode fontification feels random, Daniel Colascione, 2021/06/10
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/10