That's why it's a good practice to comment closing curly braces for the long blocks:
while (1)
{
< many lines of nested code >
} // end of while while (1)
{
< many lines of nested code >
} // end of while