Add syntax folding for cmake

This commit is contained in:
2017-05-03 22:56:30 +01:00
parent 7df1cb7b26
commit df48f1f607
2 changed files with 8 additions and 14 deletions

6
after/syntax/cmake.vim Normal file
View File

@@ -0,0 +1,6 @@
" Transparent regions to enable syntax based folding.
syntax region cmakeIfBlock start='if(.*)' end='endif(.*)' fold transparent keepend
syntax region cmakeFunctionBlock start='function(.*)' end='endfunction(.*)' fold transparent keepend
syntax region cmakeMacroBlock start='macro(.*)' end='endmacro(.*)' fold transparent keepend
syntax region cmakeForeachBlock start='foreach(.*)' end='endforeach(.*)' fold transparent keepend
syntax region cmakeWhileBlock start='while(.*)' end='endwhile(.*)' fold transparent keepend