rust-lang/rust-analyzer
Ver no GitHubmatching_brace function not correct when jumping from open brace to close brace
Open
#1.942 aberto em 2 de out. de 2019
E-has-instructionsE-mediumS-actionablegood first issue
Métricas do repositório
- Stars
- (14.924 stars)
- Métricas de merge de PR
- (Mesclagem média 3d 11h) (113 fundiu PRs em 30d)
Description
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()