Add a diff substition pattern.