summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-02 22:32:58 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-02 22:32:58 (GMT)
commitec05369d04f155fc9d1456bfb6c535d7cce58279 (patch)
treeff339732a6c54897361500a7650a33ed9c24869a
parentfc6497883cc1408c3e01f90136f2f5d82c8d8421 (diff)
downloadCMake-ec05369d04f155fc9d1456bfb6c535d7cce58279.zip
CMake-ec05369d04f155fc9d1456bfb6c535d7cce58279.tar.gz
CMake-ec05369d04f155fc9d1456bfb6c535d7cce58279.tar.bz2
ENH: Enable indentation of FUNCTION/ENDFUNCTION blocks in emacs.
-rw-r--r--Docs/cmake-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/Docs/cmake-mode.el b/Docs/cmake-mode.el
index a32f02b..e582573 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]*(")
;------------------------------------------------------------------------------