]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(heex): Add HEEX comments to match_words in ftplugin (#12957)
authorJason King <jk@handle.it>
Tue, 29 Aug 2023 20:11:55 +0000 (15:11 -0500)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 20:11:55 +0000 (22:11 +0200)
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/heex.vim

index f79c69d2aa81bc41bc588ddad6fe8e2e815beacc..becc071c37921bb931216530f1c03677c003766a 100644 (file)
@@ -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>,' ..