handle syntax errors in class blocks too