Skip to content

Commit efab7db

Browse files
authored
date
1 parent 8eea632 commit efab7db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

indent/javascript.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: Javascript
33
" Maintainer: vim-javascript community
44
" URL: https://github.com/pangloss/vim-javascript
5-
" Last Change: August 16, 2016
5+
" Last Change: August 19, 2016
66

77
" Only load this indent file when no other was loaded.
88
if exists('b:did_indent')
@@ -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)