Fixed wrong line numbers in error messages for multi-line statements

Partially fixes #1351
Semicolon is not needed here ;)