Skip to content

Commit 9e2c10e

Browse files
authored
remove else
not supposed to be there
1 parent 33833cc commit 9e2c10e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function s:Onescope(lnum,text,add)
7474
\ (cursor(a:lnum, match(a:text, ')' . s:line_term)) > -1 &&
7575
\ s:lookForParens('(', ')', 'cbW', 100) > 0 &&
7676
\ search((a:add ? '\K\k*' :
77-
\ '\<\%(else\|for\%(\s+each\)\=\|function\*\=\%(\s\+\K\k*\)\=\|if\|let\|switch\|while\|with\)\C') .
77+
\ '\<\%(for\%(\s+each\)\=\|function\*\=\%(\s\+\K\k*\)\=\|if\|let\|switch\|while\|with\)\C') .
7878
\ '\_s*\%#','bW')) &&
7979
\ (a:add || (expand("<cword>") == 'while' ? !s:lookForParens('\<do\>\C', '\<while\>\C','bW',100) : 1))
8080
endfunction

0 commit comments

Comments
 (0)