Skip to content

Commit

Permalink
Apply lost tabs to c specs
Browse files Browse the repository at this point in the history
  • Loading branch information
confused-Techie committed Jul 10, 2023
1 parent a03ab97 commit 77199b4
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions packages/language-c/spec/c-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} },
};\
`
));
Expand Down

0 comments on commit 77199b4

Please sign in to comment.