>It sounds like you want something like ECMAScript's magic>you-don't-always-need-a-semicolon feature.

But please do not go there.

><http://bclary.com/2004/11/07/#a-7.9> describes how it works in detail.>The thrust of it is that "if you see an invalid token, but you saw a>newline before, automatically insert a semicolon to fix things.">>There are more than a few people who believe that this feature should>not have been implemented.

There is a bit more to this. As a result of this kludge, it is
illegal to have newlines at certain points in some statements. For
example:
return
<expression which I decided to put all on its own line>;
is not legal. It is not permitted to have a newline immediately after
"return".