Duplication between helix-core/src/match_brackets.rs
and helix-core/src/surround.rs
#3432
Labels
helix-core/src/match_brackets.rs
and helix-core/src/surround.rs
#3432
Looking at #3357 I noticed that both
match_brackets.rs
andsurround.rs
have code that is solving what appears to be essentially the same problem, finding matching brackets. The key difference between them is thatmatch_brackets.rs
is based ontree-sitter
whilesurround.rs
is not. This means that:Match (m)
sub commandsNotice also that they both have very similar `PAIRS` arrays
I propose unifying the logic into one file, and making all bracket matching / surrounding commands work the same.
Thoughts?
The text was updated successfully, but these errors were encountered: