We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aadb970 commit aed30e1Copy full SHA for aed30e1
3 files changed
indent/cmake.vim
@@ -105,7 +105,9 @@ fun! CMakeGetIndent(lnum)
105
106
if previous_line =~? s:cmake_indent_begin_regex " control begin block
107
let ind = ind + shiftwidth()
108
- elseif this_line =~? s:cmake_indent_end_regex " control end block
+ endif
109
+
110
+ if this_line =~? s:cmake_indent_end_regex " control end block
111
let ind = ind - shiftwidth()
112
elseif this_line =~? s:cmake_indent_comment_line
113
if g:cmake_indent_align_comments_to_first_column == 1
test/if-endif-indent.cmake
@@ -0,0 +1,2 @@
1
+if(HELLO)
2
+endif()
test/if-endif-indent.cmake.html.ref
@@ -0,0 +1,6 @@
+<body>
+<pre id='vimCodeElement'>
3
+<span class="Statement">if</span>(HELLO)
4
+<span class="Statement">endif</span>()
5
+</pre>
6
+</body>
0 commit comments