@@ -74,9 +74,9 @@ function s:Trimline(ln)
7474endfunction
7575
7676" configurable regexes that define continuation lines, not including (, {, or [.
77- let s: javascript_opfirst = ' ^' . get (g: ,' javascript_opfirst' ,
77+ let s: opfirst = ' ^' . get (g: ,' javascript_opfirst' ,
7878 \ ' \%([<>,?^%|*&]\|\/[/*]\@!\|\([-.:+]\)\1\@!\|=>\@!\|in\%(stanceof\)\=\>\)' )
79- let s: javascript_continuation = get (g: ,' javascript_continuation' ,
79+ let s: continuation = get (g: ,' javascript_continuation' ,
8080 \ ' \%([<=,.?/*^%|&:]\|+\@<!+\|-\@<!-\|=\@<!>\|\<in\%(stanceof\)\=\)' ) . ' $'
8181
8282function s: OneScope (lnum,text)
@@ -254,7 +254,7 @@ function GetJavascriptIndent()
254254 \ float2nr (str2float (matchstr (&cino ,' .*:\zs[-0-9.]*' )) * (&cino = ~# ' .*:[^,]*s' ? s: W : 1 ))
255255
256256 " most significant, find the indent amount
257- let isOp = l: line = ~# s: javascript_opfirst || pline !~# s: expr_case . ' $' && pline = ~# s: javascript_continuation
257+ let isOp = l: line = ~# s: opfirst || pline !~# s: expr_case . ' $' && pline = ~# s: continuation
258258 let bL = s: iscontOne (l: lnum ,num,isOp)
259259 let bL -= (bL && l: line = ~ ' ^{' ) * s: W
260260 if isOp && (! num || bchar && cursor (b: js_cache [1 ],b: js_cache [2 ])+ 1 && s: IsBlock ())
0 commit comments