Skip to content

Commit 1d32e38

Browse files
authored
regex for word boundary
1 parent 9e2c10e commit 1d32e38

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
@@ -70,7 +70,7 @@ endif
7070
let g:javascript_continuation .= s:line_term
7171

7272
function s:Onescope(lnum,text,add)
73-
return a:text =~ '\%(\<else\|\<do\|=>' . (a:add ? '\|try\|finally' : '' ) . '\)\C' . s:line_term ||
73+
return a:text =~ '\%(\<else\|\<do\|=>' . (a:add ? '\|\<try\|\<finally' : '' ) . '\)\C' . s:line_term ||
7474
\ (cursor(a:lnum, match(a:text, ')' . s:line_term)) > -1 &&
7575
\ s:lookForParens('(', ')', 'cbW', 100) > 0 &&
7676
\ search((a:add ? '\K\k*' :

0 commit comments

Comments
 (0)