rust-lang/rust-analyzer
matching_brace function not correct when jumping from open brace to close brace
Offen
#1.942 geöffnet am 02.10.2019
E-has-instructionsE-mediumS-actionablegood first issue
Repository-Metriken
- Stars
- (14.924 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 11T 5h) (96 gemergte PRs in 30 T)
Beschreibung
swap the order of do_check parameters the makes the test case failed
do_check("struct Foo <|>{ a: i32, }", "struct Foo { a: i32, }<|>");
this matching behavior should be symmetrical
if the matching node is a left brace, we use start(), if the matching node is a right brace, we should use end()