diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-02 12:45:09 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-02 12:53:49 -0400 |
commit | 3bc852cabf5326079c710c772d5e925f3b151c3a (patch) | |
tree | d18aae5e5541374596a3f2f9a053966009dbbe2b /runtime/indent/vim.vim | |
parent | 7e36c9a2d3ddcb8b31e318e25767cfb32fa69391 (diff) | |
download | rneovim-3bc852cabf5326079c710c772d5e925f3b151c3a.tar.gz rneovim-3bc852cabf5326079c710c772d5e925f3b151c3a.tar.bz2 rneovim-3bc852cabf5326079c710c772d5e925f3b151c3a.zip |
vim-patch:11e3c5ba8203
Update runtime files
https://github.com/vim/vim/commit/11e3c5ba820325b69cb56f70e13c21d7b8808d33
Diffstat (limited to 'runtime/indent/vim.vim')
-rw-r--r-- | runtime/indent/vim.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/indent/vim.vim b/runtime/indent/vim.vim index 3cebf299f1..ee3d39490d 100644 --- a/runtime/indent/vim.vim +++ b/runtime/indent/vim.vim @@ -1,7 +1,7 @@ " Vim indent file " Language: Vim script " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2021 Feb 18 +" Last Change: 2021 Apr 18 " Only load this indent file when no other was loaded. if exists("b:did_indent") @@ -71,7 +71,8 @@ function GetVimIndentIntern() " End of heredoc: use indent of matching start line let lnum = v:lnum - 1 while lnum > 0 - if synIDattr(synID(lnum, 1, 1), "name") !~ 'vimLetHereDoc' + let attr = synIDattr(synID(lnum, 1, 1), "name") + if attr != '' && attr !~ 'vimLetHereDoc' return indent(lnum) endif let lnum -= 1 |