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 @@ -140,7 +140,7 @@ function s:GetMSL(lnum, in_one_line_scope)
140
140
" Start on the line we're at and use its indent.
141
141
let msl = a: lnum
142
142
let lnum = s: PrevNonBlankNonString (a: lnum - 1 )
143
- while lnum > 0
143
+ while lnum > 0 && ! s: Match (msl, s: line_pre . ' [])}] ' )
144
144
" If we have a continuation line, or we're in a string, use line as MSL.
145
145
" Otherwise, terminate search as we have found our MSL already.
146
146
let line = getline (lnum)
@@ -360,8 +360,8 @@ function GetJavascriptIndent()
360
360
continue
361
361
end
362
362
if parlnum > 0
363
- let ind = s: InMultiVarStatement (parlnum, 0 , 0 )|| s: LineHasOpeningBrackets (parlnum) !~ ' 2'
364
- \ ? indent (parlnum) : indent (s: GetMSL (parlnum, 0 ))
363
+ let ind = s: InMultiVarStatement (parlnum, 0 , 0 )|| s: LineHasOpeningBrackets (parlnum) !~ ' 2' ?
364
+ \ indent (parlnum) : indent (s: GetMSL (parlnum, 0 ))
365
365
endif
366
366
endwhile
367
367
return ind
You can’t perform that action at this time.
0 commit comments