File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
" Language: Javascript
3
3
" Maintainer: vim-javascript community
4
4
" URL: https://github.com/pangloss/vim-javascript
5
- " Last Change: August 19 , 2016
5
+ " Last Change: August 20 , 2016
6
6
7
7
" Only load this indent file when no other was loaded.
8
8
if exists (' b:did_indent' )
@@ -181,8 +181,8 @@ function GetJavascriptIndent()
181
181
\ float2nr (str2float (matchstr (&cino ,' .*:\zs[-0-9.]*' )) * (&cino = ~# ' .*:[^,]*s' ? s: sw () : 1 ))
182
182
183
183
" most significant, find the indent amount
184
- if ( inb && ( ! swcase && (l: line = ~# g: javascript_opfirst || pline = ~# g: javascript_continuation)) ) ||
185
- \ ( num < l: lnum && s: OneScope (l: lnum ,pline,0 ) = ~# ' \<\%(for\|each\|if\|let\|no\sb\|w\%(hile\|ith\)\)\>' &&
184
+ if inb && ! swcase && (( l: line = ~# g: javascript_opfirst || pline = ~# g: javascript_continuation ) ||
185
+ \ num < l: lnum && s: OneScope (l: lnum ,pline,0 ) = ~# ' \<\%(for\|each\|if\|let\|no\sb\|w\%(hile\|ith\)\)\>' &&
186
186
\ l: line !~ s: line_pre . ' {' )
187
187
return (num > 0 ? indent (num) : - s: sw ()) + (s: sw () * 2 ) + switch_offset
188
188
elseif num > 0
You can’t perform that action at this time.
0 commit comments