From: Jason King Date: Tue, 29 Aug 2023 20:11:55 +0000 (-0500) Subject: runtime(heex): Add HEEX comments to match_words in ftplugin (#12957) X-Git-Tag: v9.0.1819~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ac2d3da5fdf20dfddb450a49502ef47b1f581d4;p=thirdparty%2Fvim.git runtime(heex): Add HEEX comments to match_words in ftplugin (#12957) Signed-off-by: Christian Brabandt --- diff --git a/runtime/ftplugin/heex.vim b/runtime/ftplugin/heex.vim index f79c69d2aa..becc071c37 100644 --- a/runtime/ftplugin/heex.vim +++ b/runtime/ftplugin/heex.vim @@ -18,7 +18,7 @@ let b:undo_ftplugin = 'set sw< sts< et< com< cms<' " HTML: thanks to Johannes Zellner and Benji Fisher. if exists("loaded_matchit") && !exists("b:match_words") let b:match_ignorecase = 1 - let b:match_words = ',' .. + let b:match_words = '<%\{-}!--:--%\{-}>,' .. \ '<:>,' .. \ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' .. \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' ..