2015-07-18 17:05:45 -04:00
|
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1
|
|
|
|
|
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
|
|
|
|
let b:match_words = '(:),\[:\],{:},<:>,' .
|
|
|
|
\ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
|
|
|
|
endif
|
|
|
|
|
|
|
|
setlocal suffixesadd+=.jsx
|
2015-07-18 17:05:45 -04:00
|
|
|
|
|
|
|
endif
|