summaryrefslogtreecommitdiffstats
path: root/after/ftplugin/jsx.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2018-10-08 19:00:59 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2018-10-08 19:00:59 +0200
commitfd74d8b2b170b540680a9bbf6c64990f8ebafd08 (patch)
treeb1fdef6203a78a21053d1b8e0666ab7a38c36df2 /after/ftplugin/jsx.vim
parent055f7710b65dfa2df52fc0b5be2486ae36ac5751 (diff)
downloadvim-polyglot-3.3.3.tar.gz
vim-polyglot-3.3.3.zip
Updatev3.3.3
Diffstat (limited to 'after/ftplugin/jsx.vim')
-rw-r--r--after/ftplugin/jsx.vim5
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