hashicorp / hcl2

Former temporary home for experimental new version of HCL
https://github.com/hashicorp/hcl
Mozilla Public License 2.0
373 stars 66 forks source link

hcl/merged: Fix PartialContent used on merged bodies #61

Closed dmcneil closed 5 years ago

dmcneil commented 5 years ago

The mergedLeftovers slice wasn't being appended with anything so the remaining content after a PartialContent was empty. I also added some test cases to cover the change.

apparentlymart commented 5 years ago

Thanks for looking into this, @dmcneil!

This fix makes perfect sense to me, and I appreciate the extra test coverage!