From ec05369d04f155fc9d1456bfb6c535d7cce58279 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 2 Jan 2008 17:32:58 -0500 Subject: [PATCH] ENH: Enable indentation of FUNCTION/ENDFUNCTION blocks in emacs. --- Docs/cmake-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Docs/cmake-mode.el b/Docs/cmake-mode.el index a32f02b6d..e58257367 100644 --- a/Docs/cmake-mode.el +++ b/Docs/cmake-mode.el @@ -55,9 +55,9 @@ "\\|" "[ \t\r\n]" "\\)*")) (defconst cmake-regex-block-open - "^\\(IF\\|MACRO\\|FOREACH\\|ELSE\\|ELSEIF\\|WHILE\\)$") + "^\\(IF\\|MACRO\\|FOREACH\\|ELSE\\|ELSEIF\\|WHILE\\|FUNCTION\\)$") (defconst cmake-regex-block-close - "^[ \t]*\\(ENDIF\\|ENDFOREACH\\|ENDMACRO\\|ELSE\\|ELSEIF\\|ENDWHILE\\)[ \t]*(") + "^[ \t]*\\(ENDIF\\|ENDFOREACH\\|ENDMACRO\\|ELSE\\|ELSEIF\\|ENDWHILE\\|ENDFUNCTION\\)[ \t]*(") ;------------------------------------------------------------------------------