diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2015-07-18 22:50:09 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-07-18 22:50:09 +0200 |
commit | 1c80c4bb08ae250d2eb19aabe0f31c1b2bdf5097 (patch) | |
tree | c7700e4cb18952201fb991a48fb727ba3b9d4287 /after/ftplugin | |
parent | 548653cafeaa948161ad9ac8184deca0bff95537 (diff) | |
download | vim-polyglot-1c80c4bb08ae250d2eb19aabe0f31c1b2bdf5097.tar.gz vim-polyglot-1c80c4bb08ae250d2eb19aabe0f31c1b2bdf5097.zip |
Add jsx support, closes #56
Diffstat (limited to 'after/ftplugin')
-rw-r--r-- | after/ftplugin/jsx.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/after/ftplugin/jsx.vim b/after/ftplugin/jsx.vim new file mode 100644 index 00000000..ee642090 --- /dev/null +++ b/after/ftplugin/jsx.vim @@ -0,0 +1,17 @@ +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" Vim ftplugin file +" +" Language: JSX (JavaScript) +" Maintainer: Max Wang <mxawng@gmail.com> +" Depends: pangloss/vim-javascript +" +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +" modified from html.vim +if exists("loaded_matchit") + let b:match_ignorecase = 0 + let b:match_words = '(:),\[:\],{:},<:>,' . + \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' +endif + +setlocal suffixesadd+=.jsx |