File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,9 @@ fun! CMakeGetIndent(lnum)
105105
106106 if previous_line = ~? s: cmake_indent_begin_regex " control begin block
107107 let ind = ind + shiftwidth ()
108- elseif this_line = ~? s: cmake_indent_end_regex " control end block
108+ endif
109+
110+ if this_line = ~? s: cmake_indent_end_regex " control end block
109111 let ind = ind - shiftwidth ()
110112 elseif this_line = ~? s: cmake_indent_comment_line
111113 if g: cmake_indent_align_comments_to_first_column == 1
Original file line number Diff line number Diff line change 1+ if (HELLO)
2+ endif ()
Original file line number Diff line number Diff line change 1+ <body>
2+ <pre id='vimCodeElement'>
3+ <span class="Statement">if</span>(HELLO)
4+ <span class="Statement">endif</span>()
5+ </pre>
6+ </body>
You can’t perform that action at this time.
0 commit comments