We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a955ee commit 8eea632Copy full SHA for 8eea632
indent/javascript.vim
@@ -182,7 +182,7 @@ function GetJavascriptIndent()
182
183
" most significant, find the indent amount
184
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\)\)' &&
+ \ (num < l:lnum && s:OneScope(l:lnum,pline,0) =~# '\%(for\|each\|if\|let\|no\sb\|w\%(hile\|ith\)\)\>' &&
186
\ l:line !~ s:line_pre . '{')
187
return (num > 0 ? indent(num) : -s:sw()) + (s:sw() * 2) + switch_offset
188
elseif num > 0
0 commit comments