Skip to content

Commit 352bcc2

Browse files
authored
1 parent 32e7c78 commit 352bcc2

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
@@ -68,7 +68,7 @@ function s:Onescope(lnum)
6868
\ (cursor(a:lnum, match(getline(a:lnum),')' . s:line_term)) > -1 &&
6969
\ s:lookForParens('(', ')', 'cbW', 100) > 0 &&
7070
\ cursor(line('.'),match(strpart(getline(line('.')),0,col('.') - 1),
71-
\ '\<\%(catch\|else\|finally\|for\%(\s+each\)\=\|if\|let\|try\|while\|with\)\C' . s:line_term) + 1) > -1) &&
71+
\ '\<\%(else\|for\%(\s+each\)\=\|if\|let\|while\|with\)\C' . s:line_term) + 1) > -1) &&
7272
\ (expand("<cword>") =~ 'while\C' ? !s:lookForParens('\<do\>\C', '\<while\>\C','bw',100) : 1)
7373
endfunction
7474

0 commit comments

Comments
 (0)