emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature/tree-sitter: Where to Put C/C++ Stuff


From: Alan Mackenzie
Subject: Re: feature/tree-sitter: Where to Put C/C++ Stuff
Date: Tue, 1 Nov 2022 12:10:46 +0000

Hello, Eli.

On Tue, Nov 01, 2022 at 09:20:33 +0200, Eli Zaretskii wrote:
> > Date: Tue, 01 Nov 2022 02:30:54 +0000
> > From: Randy Taylor <dev@rjt.dev>

> > Where specifically should the C and C++ tree-sitter stuff go? I've been 
> > using it for a couple months and would
> > like to upstream syntax highlighting for both. I'll focus on getting C done 
> > first.

> > I see there are a lot of cc- files; would it be appropriate to add the 
> > tree-sitter stuff into a new cc-treesit.el file?

> I suggest a separate cc-*.el file (e.g., cc-treesit.el), and some user
> option to trigger its use instead of (or maybe in addition to, as the
> case may be) the equivalent CC mode stuff.

> Alan, are you okay with this approach?

Yes, certainly.  It is the approach I would have chosen myself.  The key
sequence C-c C-t is currently unused in CC Mode, and it would seem ideal
to toggle tree-sitter with.

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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