Open quad opened 2 years ago
I understand your request. Unfortunately, I originally wrote the matching code in a very line oriented way, so this will likely require a refactoring. You can have a look at some of the code here:
https://github.com/mbarkhau/bumpver/blob/master/src/bumpver/v2rewrite.py
Would you be interested in working on a PR for this?
Our Rust project needs to bump a version in a Cargo.lock file. The contents looks something like:
We want to only want to bump
our-package
's version. However, if we match uponversion = "{version"}
then there's the potential that we match and bump a package that isn'tour-package
.It would be nice if a pattern could be multi-line and thus we could write:
'name = "our-package"\nversion = "{version}"'