Add syntax folding for cmake
This commit is contained in:
6
after/syntax/cmake.vim
Normal file
6
after/syntax/cmake.vim
Normal 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
|
||||
Reference in New Issue
Block a user