; Indent by 8 in BSD indent tests for c-ts-mode
* test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts: Set indent offset to 8.
This commit is contained in:
parent
9acf6eff01
commit
de98b5a24f
1 changed files with 37 additions and 37 deletions
|
@ -2,7 +2,7 @@ Code:
|
|||
(lambda ()
|
||||
(c-ts-mode)
|
||||
(setq-local indent-tabs-mode nil)
|
||||
(setq-local c-ts-mode-indent-offset 2)
|
||||
(setq-local c-ts-mode-indent-offset 8)
|
||||
(c-ts-mode-set-style 'bsd)
|
||||
(indent-region (point-min) (point-max)))
|
||||
|
||||
|
@ -14,7 +14,7 @@ Name: Basic
|
|||
int
|
||||
main (void)
|
||||
{
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
=-=-=
|
||||
|
||||
|
@ -24,10 +24,10 @@ Name: Hanging Braces
|
|||
int
|
||||
main (void)
|
||||
{
|
||||
if (true)
|
||||
{
|
||||
|
|
||||
}
|
||||
if (true)
|
||||
{
|
||||
|
|
||||
}
|
||||
}
|
||||
=-=-=
|
||||
|
||||
|
@ -38,20 +38,20 @@ int
|
|||
main (void)
|
||||
{
|
||||
label:
|
||||
return 0;
|
||||
if (true)
|
||||
{
|
||||
label:
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (true)
|
||||
{
|
||||
label:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
if (true)
|
||||
{
|
||||
label:
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (true)
|
||||
{
|
||||
label:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
=-=-=
|
||||
|
||||
|
@ -60,14 +60,14 @@ Name: If-Else
|
|||
=-=
|
||||
int main()
|
||||
{
|
||||
if (true)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
if (true)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
=-=-=
|
||||
|
||||
|
@ -75,7 +75,7 @@ Name: Empty Line
|
|||
=-=
|
||||
int main()
|
||||
{
|
||||
|
|
||||
|
|
||||
}
|
||||
=-=-=
|
||||
|
||||
|
@ -86,9 +86,9 @@ int
|
|||
main (int argc,
|
||||
char *argv[])
|
||||
{
|
||||
{
|
||||
int i = 0;
|
||||
}
|
||||
{
|
||||
int i = 0;
|
||||
}
|
||||
}
|
||||
=-=-=
|
||||
|
||||
|
@ -111,17 +111,17 @@ else
|
|||
break;
|
||||
=-=
|
||||
for (int i = 0; i < 5; i++)
|
||||
continue;
|
||||
continue;
|
||||
|
||||
while (true)
|
||||
return 1;
|
||||
return 1;
|
||||
|
||||
do
|
||||
i++;
|
||||
i++;
|
||||
while (true)
|
||||
|
||||
if (true)
|
||||
break;
|
||||
break;
|
||||
else
|
||||
break;
|
||||
break;
|
||||
=-=-=
|
||||
|
|
Loading…
Add table
Reference in a new issue