commit | 6148386f0c8f03da1ab0bf982a4dbe080b4ea7bc | [log] [tgz] |
---|---|---|
author | Paul Wankadia <junyer@google.com> | Fri Aug 11 18:40:51 2023 |
committer | Paul Wankadia <junyer@google.com> | Fri Aug 11 18:56:21 2023 |
tree | 976ad499b770c41222a857b1b1b38bca0d45fb2c | |
parent | cb000a8a0bb0da670e5228c4ca6c946b12beb89b [diff] |
Add support for `(?<name>expr)`. This follows https://github.com/golang/go/commit/ee61186 to some extent. I took the opportunity to simplify the parsing logic and also fixed a bug in `Regexp::Equal()` that had gone unnoticed... Change-Id: I90abec942d39b02a1c6d1ac95cd3b1cc66ec7b2a Reviewed-on: https://code-review.googlesource.com/c/re2/+/61690 Reviewed-by: Alex Chernyakhovsky <achernya@google.com> Reviewed-by: Paul Wankadia <junyer@google.com>