diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-27 08:54:18 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-27 08:54:18 +0000 |
commit | 50956f89fce93245e52b693ae63283274bc92142 (patch) | |
tree | 3393c2c20b6adb02faf8156308f18ff842f6968d /crates/ra_parser/src/grammar/paths.rs | |
parent | 7f7d96cffed6ed4836432a16cfc1dbd080bbab17 (diff) | |
parent | b1ee6d17a4af6a2fcbaeb0b98965cd610c7b1b72 (diff) |
Merge #3285
3285: Handle trivia in Structural Search and Replace r=matklad a=adamrk
Addresses the second point of https://github.com/rust-analyzer/rust-analyzer/issues/3186.
Structural search and replace will now match code that has varies from the pattern in whitespace or comments.
One issue is that it's not clear where comments in the matched code should go in the replacement. With this change they're just tacked on at the end, which can cause some unexpected moving of comments (see the last test example).
Co-authored-by: adamrk <[email protected]>
Diffstat (limited to 'crates/ra_parser/src/grammar/paths.rs')
0 files changed, 0 insertions, 0 deletions