[fix] locate to correctly line number of syntax error