From 90c66a4d2540b180d82fc3896b83190d888754b1 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 4 Sep 2021 23:05:48 +1000 Subject: [PATCH] Add matchit support for block comment delimiters --- ftplugin/racket.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ftplugin/racket.vim b/ftplugin/racket.vim index 7f0358d..0abd70d 100644 --- a/ftplugin/racket.vim +++ b/ftplugin/racket.vim @@ -67,6 +67,10 @@ endif "setl commentstring=;;%s setl commentstring=#\|\ %s\ \|# +if exists("loaded_matchit") && !exists("b:match_words") + let b:match_words = '#|:|#' +endif + " Undo our settings when the filetype changes away from Racket " (this should be amended if settings/mappings are added above!) let b:undo_ftplugin = @@ -74,3 +78,4 @@ let b:undo_ftplugin = \. "| setl makeprg< commentstring<" \. "| nunmap K" \. "| vunmap K" + \. "| unlet! b:match_words"