From f214b3a6e7aa55b8a8864cc413c44a16b102328e Mon Sep 17 00:00:00 2001 From: "Andy K. Massimino" Date: Sun, 1 Sep 2019 12:18:22 -0400 Subject: [PATCH] Don't use hotfix for c ft --- after/ftplugin/c_matchup.vim | 10 +++------- doc/matchup.txt | 6 ++++++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/after/ftplugin/c_matchup.vim b/after/ftplugin/c_matchup.vim index c6fdb2b..acedbb6 100644 --- a/after/ftplugin/c_matchup.vim +++ b/after/ftplugin/c_matchup.vim @@ -1,9 +1,5 @@ -function! s:c_comments() - if matchup#util#check_match_words('bb2bcbee') - let b:match_words .= ',/\*:\*/' - endif -endfunction - -let b:matchup_hotfix = function('s:c_comments') +if matchup#util#check_match_words('bb2bcbee') + call matchup#util#append_match_words('/\*:\*/') +endif diff --git a/doc/matchup.txt b/doc/matchup.txt index c635e08..d137188 100644 --- a/doc/matchup.txt +++ b/doc/matchup.txt @@ -894,6 +894,12 @@ Customization~ `after/ftplugin/{&filetype}.vim`, it can be used to customize the matching regular expressions for a particular file type. +*matchup#util#append_match_words* *matchup-append* +> + call matchup#util#append_match_words(str) +< + Adds a set of patterns to |b:match_words|, adding a comma if necessary. + ============================================================================== FAQ *matchup-faq*