Update
This commit is contained in:
parent
15727e7eb0
commit
d527002849
@ -124,6 +124,8 @@ function! jsx_pretty#indent#get(js_indent)
|
|||||||
else
|
else
|
||||||
return prev_ind
|
return prev_ind
|
||||||
endif
|
endif
|
||||||
|
elseif prev_line =~ '^\<return'
|
||||||
|
return prev_ind
|
||||||
else
|
else
|
||||||
return prev_ind - s:sw()
|
return prev_ind - s:sw()
|
||||||
endif
|
endif
|
||||||
@ -188,6 +190,13 @@ function! jsx_pretty#indent#get(js_indent)
|
|||||||
else
|
else
|
||||||
let ind = a:js_indent()
|
let ind = a:js_indent()
|
||||||
|
|
||||||
|
" Issue #68
|
||||||
|
" return (<div>
|
||||||
|
" |<div>)
|
||||||
|
if prev_line =~ '^\<return' && line =~ '^<\s*' . s:end_tag
|
||||||
|
return prev_ind
|
||||||
|
endif
|
||||||
|
|
||||||
" If current syntax is not a jsx syntax group
|
" If current syntax is not a jsx syntax group
|
||||||
if s:syn_xmlish(prev_syn_eol) && line !~ '^[)\]}]'
|
if s:syn_xmlish(prev_syn_eol) && line !~ '^[)\]}]'
|
||||||
let sol = matchstr(line, s:opfirst)
|
let sol = matchstr(line, s:opfirst)
|
||||||
|
@ -22,7 +22,7 @@ endif
|
|||||||
syn include @gitcommitDiff syntax/diff.vim
|
syn include @gitcommitDiff syntax/diff.vim
|
||||||
syn region gitcommitDiff start=/\%(^diff --\%(git\|cc\|combined\) \)\@=/ end=/^\%(diff --\|$\|#\)\@=/ fold contains=@gitcommitDiff
|
syn region gitcommitDiff start=/\%(^diff --\%(git\|cc\|combined\) \)\@=/ end=/^\%(diff --\|$\|#\)\@=/ fold contains=@gitcommitDiff
|
||||||
|
|
||||||
syn match gitcommitSummary ".*\%<50v" contained containedin=gitcommitFirstLine nextgroup=gitcommitOverflow contains=@Spell
|
syn match gitcommitSummary "^.*\%<51v." contained containedin=gitcommitFirstLine nextgroup=gitcommitOverflow contains=@Spell
|
||||||
syn match gitcommitOverflow ".*" contained contains=@Spell
|
syn match gitcommitOverflow ".*" contained contains=@Spell
|
||||||
syn match gitcommitBlank "^[^#].*" contained contains=@Spell
|
syn match gitcommitBlank "^[^#].*" contained contains=@Spell
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user