Fix matching braces in jsx/tsx tags (#32196)
Closes #27998 Also fixed an issue where jumping back from closing to opening tags didn't work in javascript due to missing brackets in our tree-sitter query. Release Notes: - N/A --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
6a8fdbfd62
commit
f62d76159b
4 changed files with 63 additions and 0 deletions
3
crates/vim/test_data/test_matching_braces_in_tag.json
Normal file
3
crates/vim/test_data/test_matching_braces_in_tag.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{"Put":{"state":"function f() {\n return (\n <div rules={ˇ[{ a: 1 }]}>\n <h1>test</h1>\n </div>\n );\n}"}}
|
||||
{"Key":"%"}
|
||||
{"Get":{"state":"function f() {\n return (\n <div rules={[{ a: 1 }ˇ]}>\n <h1>test</h1>\n </div>\n );\n}","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue