adding line number and position on syntax error