@@ -232,17 +232,17 @@ let s:continuation = get(g:,'javascript_continuation',
232232function s: Continues (ln ,con)
233233 let tok = matchstr (a: con [-15 :],s: continuation )
234234 if tok = ~ ' [a-z:]'
235- call cursor (a: ln ,strlen (a: con ))
235+ call cursor (a: ln , len (a: con ))
236236 return tok == ' :' ? s: ExprCol () : s: PreviousToken () != ' .'
237237 elseif tok !~ ' [/>]'
238238 return tok isnot ' '
239239 endif
240- return s: SynAt (a: ln ,strlen (a: con )) !~? (tok == ' >' ? ' jsflow\|^html' : ' regex' )
240+ return s: SynAt (a: ln , len (a: con )) !~? (tok == ' >' ? ' jsflow\|^html' : ' regex' )
241241endfunction
242242
243243function s: Trim (ln )
244244 let divi = split (getline (a: ln ),' \s\+$\|\S\zs\ze\s*\/[/*]' )
245- while len (divi) > 1 && s: SynAt (a: ln , strlen (join (divi,' ' ))) = ~? s: syng_com
245+ while len (divi) > 1 && s: SynAt (a: ln , len (join (divi,' ' ))) = ~? s: syng_com
246246 call remove (divi,-1 )
247247 endwhile
248248 return join (divi,' ' )
@@ -288,7 +288,7 @@ function s:Balanced(lnum)
288288endfunction
289289
290290function s: OneScope (lnum)
291- call cursor (a: lnum ,strlen (s: Trim (a: lnum )))
291+ call cursor (a: lnum , len (s: Trim (a: lnum )))
292292 if s: LookingAt () == ' )' && s: GetPair (' (' , ' )' , ' bW' , s: skip_expr , 100 )
293293 let tok = s: PreviousToken ()
294294 return (tok = ~# ' ^\%(for\|if\|let\|while\|with\)$' ||
@@ -444,7 +444,7 @@ function GetJavascriptIndent()
444444 if idx == -1 && pline[-1 :] !~ ' [{;]'
445445 let sol = matchstr (l: line ,s: opfirst )
446446 if sol = ~# ' ^\%(in\%(stanceof\)\=\|\*\)$'
447- call cursor (l: lnum ,strlen (pline))
447+ call cursor (l: lnum , len (pline))
448448 if pline[-1 :] == ' }' && s: GetPair (' {' ,' }' ,' bW' ,s: skip_expr ,200 ) && s: IsBlock ()
449449 return num_ind + s: sw ()
450450 endif
0 commit comments