Add syntax error for mismatched brackets