Broken syntax detection