Skip to content

Commit 5e79f9f

Browse files
committed
AirBNB fixups; from mxw#155
1 parent 8531812 commit 5e79f9f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

after/indent/jsx.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ fu! GetJsxIndent()
9797
endif
9898

9999
" Then correct the indentation of any JSX following '/>' or '>'.
100+
" Skip empty lines
101+
let i = 1
102+
while ((v:lnum - i) != a:firstline && getline(v:lnum - i) =~? '^\s*$')
103+
let i = i + 1
104+
endwhile
105+
100106
if getline(v:lnum - 1) =~? s:endtag
101107
let ind = ind + &sw
102108
endif

0 commit comments

Comments
 (0)