SlickEdit Community
Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2018 v23 Beta Discussion => Topic started by: jc44 on August 22, 2018, 02:20:06 PM
-
If I have multilevel braceless blocks then the syntax indent only goes back one level at then end rather than going back all levels, thus:
void fn()
{
int i,j;
for (i = 0; i != 4; ++i)
for (j = 0; j != 4; ++j)
printf("Hello world\n");
// Bad indent
}
Pretty sure this worked previously
Thanks
John Cox
-
I think we can fix this.
There are some other cases which are much harder but not this one. An if then clause may be followed by an else and there there's no way to know whether the user plan's to type an else or not.
-
> An if then clause may be followed by an else and there there's no way to know whether the user plan's to type an else or not.
True but I think I would expect you to deal with that in a similar way to the way you deal with case statements in switches - assume no "else" and reindent after the user has typed it.
-
That works
-
Fixed for beta 3