Console: fixed problem with #, // and -- without a ; at the end