fix(cpp): incorrect indent of class with opening { on new line (#5811)

This commit is contained in:
Jędrzej Boczar 2023-12-21 21:49:13 +01:00 committed by GitHub
parent d2d3df8613
commit d496c5e08e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -1,11 +1,9 @@
; inherits: c
[
(class_specifier)
(condition_clause)
] @indent.begin
((field_initializer_list) @indent.begin
(#set! indent.start_at_same_line 1))
(access_specifier) @indent.branch

View file

@ -0,0 +1,9 @@
class Foo
{
int x;
class Bar
{
int y;
};
Bar z;
};