mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Apply lost tabs to c specs
This commit is contained in:
parent
a03ab9738b
commit
77199b4726
@ -684,8 +684,8 @@ int something() {
|
||||
it("indents allman-style curly braces", () => expectPreservedIndentation(`\
|
||||
if (a)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
do
|
||||
{
|
||||
while (b)
|
||||
@ -694,38 +694,38 @@ for (;;)
|
||||
}
|
||||
}
|
||||
while (d)
|
||||
}
|
||||
}
|
||||
}\
|
||||
`
|
||||
));
|
||||
|
||||
it("indents non-allman-style curly braces", () => expectPreservedIndentation(`\
|
||||
if (a) {
|
||||
for (;;) {
|
||||
for (;;) {
|
||||
do {
|
||||
while (b) {
|
||||
c();
|
||||
}
|
||||
} while (d)
|
||||
}
|
||||
}
|
||||
}\
|
||||
`
|
||||
));
|
||||
|
||||
it("indents function arguments", () => expectPreservedIndentation(`\
|
||||
a(
|
||||
b,
|
||||
c(
|
||||
b,
|
||||
c(
|
||||
d
|
||||
)
|
||||
)
|
||||
);\
|
||||
`
|
||||
));
|
||||
|
||||
it("indents array and struct literals", () => expectPreservedIndentation(`\
|
||||
some_t a[3] = {
|
||||
{ .b = c },
|
||||
{ .b = c, .d = {1, 2} },
|
||||
{ .b = c },
|
||||
{ .b = c, .d = {1, 2} },
|
||||
};\
|
||||
`
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user