comparison runtime/indent/javascript.vim @ 29533:34c1f4cd0c18

Update runtime files Commit: https://github.com/vim/vim/commit/2ecbe53f452e92e941aff623f6a0b72f80e43d07 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 29 21:36:21 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Fri, 29 Jul 2022 22:45:04 +0200
parents a6d3e2081544
children
comparison
equal deleted inserted replaced
29532:9ab2caa93280 29533:34c1f4cd0c18
471 endif 471 endif
472 return num_ind 472 return num_ind
473 elseif num 473 elseif num
474 return s:Nat(num_ind + get(l:,'case_offset',s:sw()) + l:switch_offset + b_l + is_op) 474 return s:Nat(num_ind + get(l:,'case_offset',s:sw()) + l:switch_offset + b_l + is_op)
475 endif 475 endif
476
477 let nest = get(get(b:, 'hi_indent', {}), 'blocklnr')
478 if nest
479 return indent(nextnonblank(nest + 1)) + b_l + is_op
480 endif
481
476 return b_l + is_op 482 return b_l + is_op
477 endfunction 483 endfunction
478 484
479 let &cpo = s:cpo_save 485 let &cpo = s:cpo_save
480 unlet s:cpo_save 486 unlet s:cpo_save