chrisbra / matchit

The matchit plugin from Vim
61 stars 9 forks source link

[Feature request] Make t motion match self closed tags #42

Closed dmtrKovalenko closed 5 months ago

dmtrKovalenko commented 5 months ago

Problem

Right now dat will remove xml-like tags

<tag attribute>
  <any-other tag>
</tag>

But not tags like this

<tag attribute />

While they are a standard and using in a lot of different languages and framework: React-jsx, html, svg, etc

Expected behavior

Make t motion match the self-closed tags as well.

I will be happy to help and open a pr for that

chrisbra commented 5 months ago

That is documented behaviour for :h tag-blocks. This has nothing to do with the matchit plugin, but feel free to open an issue over at vim/vim please.