aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/input.rs
diff options
context:
space:
mode:
authorMichael Davis2022-07-20 02:51:35 +0000
committerGitHub2022-07-20 02:51:35 +0000
commit9753da6ab79f863e2e8a54874dd45a077e1ffb96 (patch)
treedaba28cc9f289364736bd42e7e4c77744ba9943e /helix-view/src/input.rs
parent791bf7e50a19bcf7612788deb7514847089cb976 (diff)
Fix locals tracking in Rust closures (#3027)
The fix comes from the rewriting of the `closure_parameters` stanza: it was capturing the entire `closure_parameters` node including paretheses, whitespace, and commas. Capturing the identifiers within fixes the tracking. In order to make sure locals definitions from closure parameters don't leak out of the body of the closure, though, we should also mark the closure itself as a locals scope.
Diffstat (limited to 'helix-view/src/input.rs')
0 files changed, 0 insertions, 0 deletions