vim-patch:2ecbe53f452e (#19577)

Update runtime files
2ecbe53f45
This commit is contained in:
Christian Clason
2022-07-30 15:48:32 +02:00
committed by GitHub
parent d36d9be8ff
commit 6237ac8402
14 changed files with 225 additions and 70 deletions

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