diff options
Diffstat (limited to 'after/ftplugin/jsx.vim')
-rw-r--r-- | after/ftplugin/jsx.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/after/ftplugin/jsx.vim b/after/ftplugin/jsx.vim index a5682895..380d476b 100644 --- a/after/ftplugin/jsx.vim +++ b/after/ftplugin/jsx.vim @@ -11,8 +11,11 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1 " modified from html.vim if exists("loaded_matchit") let b:match_ignorecase = 0 - let b:match_words = '(:),\[:\],{:},<:>,' . + let s:jsx_match_words = '(:),\[:\],{:},<:>,' . \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(/\@<!>\|$\):<\@<=/\1>' + let b:match_words = exists('b:match_words') + \ ? b:match_words . ',' . s:jsx_match_words + \ : s:jsx_match_words endif setlocal suffixesadd+=.jsx |