From b69f2d889d043080ea2df25feec09a559b280b42 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 9 Oct 2019 16:53:26 +0100 Subject: [PATCH] Allow white space in cmake region matches --- after/syntax/cmake.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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