Skip to content

Commit 8eea632

Browse files
authored
fix foreach method calls
1 parent 0a955ee commit 8eea632

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
@@ -182,7 +182,7 @@ function GetJavascriptIndent()
182182

183183
" most significant, find the indent amount
184184
if (inb && (l:line =~# g:javascript_opfirst || (!swcase && pline =~# g:javascript_continuation))) ||
185-
\ (num < l:lnum && s:OneScope(l:lnum,pline,0) =~# '\%(for\|each\|if\|let\|no\sb\|w\%(hile\|ith\)\)' &&
185+
\ (num < l:lnum && s:OneScope(l:lnum,pline,0) =~# '\%(for\|each\|if\|let\|no\sb\|w\%(hile\|ith\)\)\>' &&
186186
\ l:line !~ s:line_pre . '{')
187187
return (num > 0 ? indent(num) : -s:sw()) + (s:sw() * 2) + switch_offset
188188
elseif num > 0

0 commit comments

Comments
 (0)