No, it ends at the second brace. It's just recalled again by a for loop in a main function that you never see when you use the Arduino IDE.
yes, that's what I said, it loops
But that loop includes a function return and function call which will destroy all automatic variables and then recreate them. It is extremely misleading to consider that a "loop".