Add a diff substitution pattern.