Re: substitution in C# hangs VS2008
Here is the selected code:
Build.a_nacha_record()
.that_starts_with_a_record_type_field_code_of(8)
.then_has_a_field_containing(service_class_code())
.then_has_a_numeric_field_of_length(6).containing(entry_count)
.then_has_a_numeric_field_of_length(10).containing(entry_hash)
.then_has_a_numeric_field_of_length(12).containing(debit_total)
.then_has_a_numeric_field_of_length(12).containing(credit_total)
.then_has_a_field_containing(company_identification)
.then_has_a_field_containing(new string(' ', 19)) // message authentication code -- leave blank
.then_has_a_field_containing(new string(' ', 6)) // reserved -- leave blank
.then_has_a_field_containing(originating_dfi_id)
.then_has_a_numeric_field_of_length(7).containing(batch_number)
.and_return_a_string;
Here is what I'm trying to do:
:'<,'>s/then_has_a_\(field\|numeric_field\)/then_has_a<mandatory>().\1/g
This crashes VS every time -- well, the four times I tried it, anyway, including with :%s instead of :'<,'>s.