zed
zed copied to clipboard
Vim mode "%" matching tag jumping does not work
Summary
I develop react. and i make a small demo.
function App() {
return (
<div>
<div rules={[{required: true}]}>
<h1>Hello, World!</h1>
</div>
</div>
);
}
https://github.com/user-attachments/assets/85899982-f7ff-4d94-8d97-5f7980520b1c
Zed Version and System Specs
Zed 0.179.5 Mac OS 15.3.2 (24D81)
Seems we're being a bit to eager to match tags instead of regular brackets. Thanks for reporting!
While trying to fix this I also discovered some other incorrect behavior. In html we correctly jump from closing tags to their corresponding opening tag, but in jsx the backwards jump seems to be failing. I'm adding tests for that case, and the brackets-within-tags one from this issue and will try to address both.