diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-07 20:12:44 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-11-07 20:16:48 +0100 |
commit | 10e5040b61ece408db268e830953047001951a15 (patch) | |
tree | 5f6725d2e151f4bbbea3718a96417c58fba7fc7d /runtime/indent/cmake.vim | |
parent | 4be03796025000f3b4c4507bb54710609c4b40da (diff) | |
download | rneovim-10e5040b61ece408db268e830953047001951a15.tar.gz rneovim-10e5040b61ece408db268e830953047001951a15.tar.bz2 rneovim-10e5040b61ece408db268e830953047001951a15.zip |
vim-patch:24a98a0eb772
Update runtime files
https://github.com/vim/vim/commit/24a98a0eb77245adc50facad8b735b20bfd31a7e
Diffstat (limited to 'runtime/indent/cmake.vim')
-rw-r--r-- | runtime/indent/cmake.vim | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/runtime/indent/cmake.vim b/runtime/indent/cmake.vim index 85a9ec4e98..845bdd7655 100644 --- a/runtime/indent/cmake.vim +++ b/runtime/indent/cmake.vim @@ -3,7 +3,7 @@ " Author: Andy Cedilnik <andy.cedilnik@kitware.com> " Maintainer: Dimitri Merejkowsky <d.merej@gmail.com> " Former Maintainer: Karthik Krishnan <karthik.krishnan@kitware.com> -" Last Change: 2017 Aug 30 +" Last Change: 2017 Sep 24 " " Licence: The CMake license applies to this file. See " https://cmake.org/licensing @@ -14,7 +14,6 @@ if exists("b:did_indent") endif let b:did_indent = 1 -setlocal et setlocal indentexpr=CMakeGetIndent(v:lnum) setlocal indentkeys+==ENDIF(,ENDFOREACH(,ENDMACRO(,ELSE(,ELSEIF(,ENDWHILE( @@ -67,19 +66,19 @@ fun! CMakeGetIndent(lnum) let ind = ind else if previous_line =~? cmake_indent_begin_regex - let ind = ind + &sw + let ind = ind + shiftwidth() endif if previous_line =~? cmake_indent_open_regex - let ind = ind + &sw + let ind = ind + shiftwidth() endif endif " Subtract if this_line =~? cmake_indent_end_regex - let ind = ind - &sw + let ind = ind - shiftwidth() endif if previous_line =~? cmake_indent_close_regex - let ind = ind - &sw + let ind = ind - shiftwidth() endif return ind |