Add diff substitution patterns.