We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efab7db commit 055ce0cCopy full SHA for 055ce0c
indent/javascript.vim
@@ -181,7 +181,7 @@ function GetJavascriptIndent()
181
\ float2nr(str2float(matchstr(&cino,'.*:\zs[-0-9.]*')) * (&cino =~# '.*:[^,]*s' ? s:sw() : 1))
182
183
" most significant, find the indent amount
184
- if (inb && (l:line =~# g:javascript_opfirst || (!swcase && pline =~# g:javascript_continuation))) ||
+ if (inb && (!swcase && (l:line =~# g:javascript_opfirst || pline =~# g:javascript_continuation))) ||
185
\ (num < l:lnum && s:OneScope(l:lnum,pline,0) =~# '\<\%(for\|each\|if\|let\|no\sb\|w\%(hile\|ith\)\)\>' &&
186
\ l:line !~ s:line_pre . '{')
187
return (num > 0 ? indent(num) : -s:sw()) + (s:sw() * 2) + switch_offset
0 commit comments