Implement syntax error recovery