[ldpatch] Fix grammar for generation.