[vim/vim] runtime(html): b:match_words for html must use whole tag (PR #20313)

2 views
Skip to first unread message

Andrey Starodubtsev

unread,
May 24, 2026, 7:33:50 AM (18 hours ago) May 24
to vim/vim, Subscribed

b:match_words which contains patterns used by matchit plugin to find tag's counterpath, is fixed so that matching happens using the whole tag, not just its first letter.

Also, it allows to find matching tag in case if there are spaces or attributes after tag name.

This MR addresses chrisbra/matchit#51


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20313

Commit Summary

  • c36af41 runtime(html): b:match_words for html must use whole tag

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20313@github.com>

Christian Brabandt

unread,
May 24, 2026, 1:40:03 PM (12 hours ago) May 24
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20313)

thanks. Can you give an example where this change is required?


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20313/c4529498779@github.com>

Andrey Starodubtsev

unread,
May 24, 2026, 4:03:41 PM (10 hours ago) May 24
to vim/vim, Subscribed
andrey-starodubtsev left a comment (vim/vim#20313)

thanks. Can you give an example where this change is required?

Sure!

For the following snippets:

<b>
<big>some text</big>
</b>
<b id="123">
<big>some text</big>
</b>
<b
  id="123"
  name="abc"
>
<big>some text</big>
</b>

the following scenario must succeed:

  1. set ft=html
  2. put cursor on opening b tag
  3. pressing % several times must jump before opening and closing tags.
  4. put cursor on big tag
  5. pressing % several times must jump before opening and closing tags.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20313/c4529815929@github.com>

Reply all
Reply to author
Forward
0 new messages