File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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)
140140 " Start on the line we're at and use its indent.
141141 let msl = a: lnum
142142 let lnum = s: PrevNonBlankNonString (a: lnum - 1 )
143- while lnum > 0
143+ while lnum > 0 && ! s: Match (msl, s: line_pre . ' [])}] ' )
144144 " If we have a continuation line, or we're in a string, use line as MSL.
145145 " Otherwise, terminate search as we have found our MSL already.
146146 let line = getline (lnum)
@@ -360,8 +360,8 @@ function GetJavascriptIndent()
360360 continue
361361 end
362362 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 ))
365365 endif
366366 endwhile
367367 return ind
You can’t perform that action at this time.
0 commit comments