2019-03-04 03:28:35 -05:00
|
|
|
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jsx') != -1
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2015-07-18 16:50:09 -04:00
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" Vim ftplugin file
|
|
|
|
"
|
|
|
|
" Language: JSX (JavaScript)
|
|
|
|
" Maintainer: Max Wang <mxawng@gmail.com>
|
|
|
|
"
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
|
|
|
|
" modified from html.vim
|
|
|
|
if exists("loaded_matchit")
|
|
|
|
let b:match_ignorecase = 0
|
2018-10-08 13:00:59 -04:00
|
|
|
let s:jsx_match_words = '(:),\[:\],{:},<:>,' .
|
2017-09-27 13:57:29 -04:00
|
|
|
\ '<\@<=\([^/][^ \t>]*\)[^>]*\%(/\@<!>\|$\):<\@<=/\1>'
|
2018-10-08 13:00:59 -04:00
|
|
|
let b:match_words = exists('b:match_words')
|
|
|
|
\ ? b:match_words . ',' . s:jsx_match_words
|
|
|
|
\ : s:jsx_match_words
|
2015-07-18 16:50:09 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
setlocal suffixesadd+=.jsx
|