add diff substitution patterns.