Fix semicolon parsing to check for \n