rust-lang/rust-analyzer
在 GitHub 查看matching_brace function not correct when jumping from open brace to close brace
Open
#1,942 建立於 2019年10月2日
E-has-instructionsE-mediumS-actionablegood first issue
倉庫指標
- Star
- (14,924 star)
- PR 合併指標
- (平均合併 11天 5小時) (30 天內合併 96 個 PR)
描述
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()