Check for syntax errors