I'm not sure of the details but surely the answer involves semi-colon insertion.
That's the only one I'm aware of.
Put me in the "if that makes a difference in your code, you're doing it wrong" camp (and yes, I recognize that not everyone agrees, and that argument has already been had too many times).