diff --git a/after/syntax/cmake.vim b/after/syntax/cmake.vim index 71151c1..aaef38b 100644 --- a/after/syntax/cmake.vim +++ b/after/syntax/cmake.vim @@ -1,6 +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 +syntax region cmakeIfBlock start='if\s*(.*)' end='endif\s*(.*)' fold transparent keepend +syntax region cmakeFunctionBlock start='function\s*(.*)' end='endfunction\s*(.*)' fold transparent keepend +syntax region cmakeMacroBlock start='macro\s*(.*)' end='endmacro\s*(.*)' fold transparent keepend +syntax region cmakeForeachBlock start='foreach\s*(.*)' end='endforeach\s*(.*)' fold transparent keepend +syntax region cmakeWhileBlock start='while\s*(.*)' end='endwhile\s*(.*)' fold transparent keepend