diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2015-12-06 11:31:38 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-12-06 11:31:38 +0100 |
commit | 303b3f1b434f26f936c241789c84dca6e2f50df2 (patch) | |
tree | 1507706b422e3ec29c0e5f30bcf14681e04ab374 /after/jsx-config.vim | |
parent | bf849731731a7da008c891476b878735e8280bdc (diff) | |
download | vim-polyglot-303b3f1b434f26f936c241789c84dca6e2f50df2.tar.gz vim-polyglot-303b3f1b434f26f936c241789c84dca6e2f50df2.zip |
Update all bundles
Diffstat (limited to 'after/jsx-config.vim')
-rw-r--r-- | after/jsx-config.vim | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/after/jsx-config.vim b/after/jsx-config.vim deleted file mode 100644 index 0303fb0c..00000000 --- a/after/jsx-config.vim +++ /dev/null @@ -1,37 +0,0 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1 - -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Vimscript file -" -" Set up a bunch of configuration variables. -" -" Also check (if desired) whether or not the @jsx pragma is correctly included -" in '%'. Set the result in b:jsx_pragma_found. -" -" Language: JSX (JavaScript) -" Maintainer: Max Wang <mxawng@gmail.com> -" -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" - -" Only check once. -if exists('b:jsx_pragma_found') - finish -endif - -" Whether the .jsx extension is required to enable JSX syntax/indent. -if !exists('g:jsx_ext_required') - let g:jsx_ext_required = 1 -endif - -" Whether the @jsx pragma is required to enable JSX syntax/indent. -if !exists('g:jsx_pragma_required') - let g:jsx_pragma_required = 0 -endif -if !g:jsx_pragma_required | finish | endif - -" Look for the @jsx pragma. It must be included in a docblock comment before -" anything else in the file (except whitespace). -let s:jsx_pragma_pattern = '\%^\_s*\/\*\*\%(\_.\%(\*\/\)\@!\)*@jsx\_.\{-}\*\/' -let b:jsx_pragma_found = search(s:jsx_pragma_pattern, 'npw') - -endif |