Set syntax error when parser error