diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-02 11:10:25 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-02 11:51:38 -0400 |
commit | b8f3ef10c943730df8d82f229bc8b1da3a3c8294 (patch) | |
tree | 3b1b039fae1a0b4bd667348e8b32a6f409f09045 /runtime/indent | |
parent | eea3a692c652ba6d4db868cd4f3cfdebb0f65861 (diff) | |
download | rneovim-b8f3ef10c943730df8d82f229bc8b1da3a3c8294.tar.gz rneovim-b8f3ef10c943730df8d82f229bc8b1da3a3c8294.tar.bz2 rneovim-b8f3ef10c943730df8d82f229bc8b1da3a3c8294.zip |
vim-patch:dad4473f02e1
Update runtime files.
https://github.com/vim/vim/commit/dad4473f02e1fec86d43a2fc094536a4b27d3b25
Omit :echoconsole. Patch v8.2.2638 is not ported.
Diffstat (limited to 'runtime/indent')
-rw-r--r-- | runtime/indent/cdl.vim | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/runtime/indent/cdl.vim b/runtime/indent/cdl.vim index 5fae7b9046..4f9b7a8967 100644 --- a/runtime/indent/cdl.vim +++ b/runtime/indent/cdl.vim @@ -62,10 +62,14 @@ fun! CdlGetIndent(lnum) " PREVIOUS LINE let ind = indent(lnum) let line = getline(lnum) - let f = -1 " wether a '=' is a conditional or a asignment, -1 means we don't know yet - " one 'closing' element at the beginning of the line has already reduced the - " indent, but 'else', 'elseif' & 'then' increment it for the next line - " '=' at the beginning has already de right indent (increased for asignments) + + " Whether a '=' is a conditional or an assignment. -1 means we don't know + " yet. + " One 'closing' element at the beginning of the line has already reduced the + " indent, but 'else', 'elseif' & 'then' increment it for the next line. + " '=' at the beginning already has the right indent (increased for + " asignments). + let f = -1 let inicio = matchend(line, '^\c\s*\(else\a*\|then\|endif\|/[*/]\|[);={]\)') if inicio > 0 let c = line[inicio-1] |