[cmake-commits] king committed cmake-mode.el 1.31 1.32

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Jan 2 17:33:00 EST 2008


Update of /cvsroot/CMake/CMake/Docs
In directory public:/mounts/ram/cvs-serv25585

Modified Files:
	cmake-mode.el 
Log Message:
ENH: Enable indentation of FUNCTION/ENDFUNCTION blocks in emacs.


Index: cmake-mode.el
===================================================================
RCS file: /cvsroot/CMake/CMake/Docs/cmake-mode.el,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- cmake-mode.el	23 Sep 2006 20:32:34 -0000	1.31
+++ cmake-mode.el	2 Jan 2008 22:32:58 -0000	1.32
@@ -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]*(")
 
 ;------------------------------------------------------------------------------
 



More information about the Cmake-commits mailing list