mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-08-16 14:40:23 +03:00
Apply lost tabs to c specs
This commit is contained in:
parent
a03ab9738b
commit
77199b4726
@ -684,48 +684,48 @@ int something() {
|
||||
it("indents allman-style curly braces", () => expectPreservedIndentation(`\
|
||||
if (a)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
do
|
||||
for (;;)
|
||||
{
|
||||
while (b)
|
||||
do
|
||||
{
|
||||
c();
|
||||
while (b)
|
||||
{
|
||||
c();
|
||||
}
|
||||
}
|
||||
while (d)
|
||||
}
|
||||
while (d)
|
||||
}
|
||||
}\
|
||||
`
|
||||
));
|
||||
|
||||
it("indents non-allman-style curly braces", () => expectPreservedIndentation(`\
|
||||
if (a) {
|
||||
for (;;) {
|
||||
do {
|
||||
while (b) {
|
||||
c();
|
||||
}
|
||||
} while (d)
|
||||
}
|
||||
for (;;) {
|
||||
do {
|
||||
while (b) {
|
||||
c();
|
||||
}
|
||||
} while (d)
|
||||
}
|
||||
}\
|
||||
`
|
||||
));
|
||||
|
||||
it("indents function arguments", () => expectPreservedIndentation(`\
|
||||
a(
|
||||
b,
|
||||
c(
|
||||
d
|
||||
)
|
||||
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