Update runtime files

This commit is contained in:
Bram Moolenaar
2022-07-29 21:36:21 +01:00
parent 72981ac94f
commit 2ecbe53f45
35 changed files with 1029 additions and 701 deletions

View File

@ -600,7 +600,7 @@ func s:Alien3()
endif
if b:hi_indent.scripttype == "javascript"
" indent for further lines
return eval(b:hi_js1indent) + GetJavascriptIndent()
return GetJavascriptIndent()
else
return -1
endif

View File

@ -473,6 +473,12 @@ function GetJavascriptIndent()
elseif num
return s:Nat(num_ind + get(l:,'case_offset',s:sw()) + l:switch_offset + b_l + is_op)
endif
let nest = get(get(b:, 'hi_indent', {}), 'blocklnr')
if nest
return indent(nextnonblank(nest + 1)) + b_l + is_op
endif
return b_l + is_op
endfunction