comparison runtime/indent/vim.vim @ 24520:5bda4653aced

Update runtime files Commit: https://github.com/vim/vim/commit/11e3c5ba820325b69cb56f70e13c21d7b8808d33 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 21 18:09:37 2021 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Apr 2021 18:15:04 +0200
parents ef454a7f485d
children babd9f1dbe12
comparison
equal deleted inserted replaced
24519:da748a66a65a 24520:5bda4653aced
1 " Vim indent file 1 " Vim indent file
2 " Language: Vim script 2 " Language: Vim script
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2021 Feb 18 4 " Last Change: 2021 Apr 18
5 5
6 " Only load this indent file when no other was loaded. 6 " Only load this indent file when no other was loaded.
7 if exists("b:did_indent") 7 if exists("b:did_indent")
8 finish 8 finish
9 endif 9 endif
69 let syn_here = synIDattr(synID(v:lnum, 1, 1), "name") 69 let syn_here = synIDattr(synID(v:lnum, 1, 1), "name")
70 if syn_here =~ 'vimLetHereDocStop' 70 if syn_here =~ 'vimLetHereDocStop'
71 " End of heredoc: use indent of matching start line 71 " End of heredoc: use indent of matching start line
72 let lnum = v:lnum - 1 72 let lnum = v:lnum - 1
73 while lnum > 0 73 while lnum > 0
74 if synIDattr(synID(lnum, 1, 1), "name") !~ 'vimLetHereDoc' 74 let attr = synIDattr(synID(lnum, 1, 1), "name")
75 if attr != '' && attr !~ 'vimLetHereDoc'
75 return indent(lnum) 76 return indent(lnum)
76 endif 77 endif
77 let lnum -= 1 78 let lnum -= 1
78 endwhile 79 endwhile
79 return 0 80 return 0