We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33833cc commit 9e2c10eCopy full SHA for 9e2c10e
1 file changed
indent/javascript.vim
@@ -74,7 +74,7 @@ function s:Onescope(lnum,text,add)
74
\ (cursor(a:lnum, match(a:text, ')' . s:line_term)) > -1 &&
75
\ s:lookForParens('(', ')', 'cbW', 100) > 0 &&
76
\ search((a:add ? '\K\k*' :
77
- \ '\<\%(else\|for\%(\s+each\)\=\|function\*\=\%(\s\+\K\k*\)\=\|if\|let\|switch\|while\|with\)\C') .
+ \ '\<\%(for\%(\s+each\)\=\|function\*\=\%(\s\+\K\k*\)\=\|if\|let\|switch\|while\|with\)\C') .
78
\ '\_s*\%#','bW')) &&
79
\ (a:add || (expand("<cword>") == 'while' ? !s:lookForParens('\<do\>\C', '\<while\>\C','bW',100) : 1))
80
endfunction
0 commit comments