Show right syntax error location

This change moves the current pointer after parsing a token to get the
parsing input in syntax error logic.