tree-sitter / tree-sitter-rust

Rust grammar for tree-sitter
MIT License
350 stars 98 forks source link

Could we treat a single `_` as parameter in closure? #156

Closed cpea2506 closed 1 year ago

cpea2506 commented 2 years ago

As the title, so it could be highlighted like other parameter

let foo = |_| { bar }
           ^
amaanq commented 1 year ago

it's discarded and not allowed to be used though