[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61635: 30.0.50; c++-ts-mode: "}" indented wrong when a class in name
From: |
Daniel Martín |
Subject: |
bug#61635: 30.0.50; c++-ts-mode: "}" indented wrong when a class in namespace |
Date: |
Sun, 19 Feb 2023 23:13:06 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) |
tags 61635 + patch
quit
xhcoding <xhcoding@foxmail.com> writes:
> The closing '};' is indented wrong in the following class/struct definition:
>
> namespace test {
> class Name {
> }; <-- error indent
>
> } <-- when press tab, minibuffer output "Wrong type argument: wholenump, -2"
>
>
The attached patch fixes the problem by considering "declaration_list"
nodes as "blocks".
0001-Add-declaration_list-to-c-ts-common-indent-type-rege.patch
Description: Text Data