Squashed 'vim/bundle/jsx/' changes from c6d0fd7d4..d0ad98cf0
d0ad98cf0 Merge pull request #92 from jambonrose/update-vundle-readme 005c0f6e3 Expand Vundle section in ReadMe. 2bd9126d7 Merge pull request #89 from StoicLoofah/manual-installation-path 3233f48ae update README to provide correct filenames for manual installation b25141d22 Add a syntax element for JSX child blocks 34b6b9994 Merge pull request #75 from ksmithbaylor/patch-1 6d32ac410 Clarify regex comment 2e3292c0e Combine multiline opening tag logic dfa485d5b Remove g:jsx_multiline_opening_tags flag 14a820c5c Add support for multiline opening tags db329e121 Add rules and regulations for filing issues... af0831cc0 Cleanup c68282f41 Merge pull request #11 from jstoja/vundle-install 80dbab758 Avoid conflict w/ Flow generics da9b92b72 Move ftdetect out of after/ fc200a394 Remove legacy jsx-config stuff 9c9a13165 Source formating changes 6d4698f86 Adding the vundle installation line into the README git-subtree-dir: vim/bundle/jsx git-subtree-split: d0ad98cf0e5a01abd5008c0e97775500b88b0bc1main
parent
9ee501a1de
commit
b0e35109dd
@ -1,33 +0,0 @@
|
|||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
" 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')
|
|
Loading…
Reference in New Issue