bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#59966: [PATCH] [Tree-sitter] Align C++ access specifiers to their en


From: Yuan Fu
Subject: bug#59966: [PATCH] [Tree-sitter] Align C++ access specifiers to their enclosing class/struct/union
Date: Mon, 12 Dec 2022 14:39:12 -0800

Daniel Martín <mardani29@yahoo.es> writes:

> Tags: patch
>
>
> The following C++ class is indented differently in c++-mode and
> c++-ts-mode:
>
> class Sample {
> public:
> void sample();
> private:
> int a;
> };
>
> c++-mode indents it like
>
> class Sample {
> public:
>   void sample();
> private:
>   int a;
> };
>
> c++-ts-mode indents it like
>
> class Sample {
> public:
> void sample();
> private:
> int a;
> };
>
> I've attached a patch so that C++ classes are indented the same in
> c++-mode and c++-ts-mode when the default style is used.
>
> Thanks.
>

Thanks! I applied the patch.

Yuan





reply via email to

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