[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#62043: [PATCH] Fix enums appearing as structs in c-ts-base-mode's im
From: |
Randy Taylor |
Subject: |
bug#62043: [PATCH] Fix enums appearing as structs in c-ts-base-mode's imenu |
Date: |
Thu, 09 Mar 2023 02:04:21 +0000 |
On Wednesday, March 8th, 2023 at 18:27, Yuan Fu <casouri@gmail.com> wrote:
>
> > On Mar 7, 2023, at 5:49 PM, Randy Taylor dev@rjt.dev wrote:
> >
> > X-Debbugs-CC: casouri@gmail.com
> >
> > With {c, c++}-ts-mode, enums appear as structs in imenu. The attached patch
> > fixes this.
> >
> > Example:
> > enum Thing { A, B, C };
> >
> > Should appear as Enum Thing
> > <0001-Fix-enums-appearing-as-structs-in-c-ts-base-mode-s-i.patch>
>
>
> Thanks! I wonder what determines which categories to merge together and which
> to not? If we separate Enums, should we also separate Unions?
>
> Yuan
I think they should all be separate actually. Attached a patch that does so.
0001-Fix-enums-and-unions-appearing-as-structs-in-c-ts-ba.patch
Description: Text Data