Better handling of newline character(s) for statement parsing