diff options
author | Christopher Sean Morrison <brlcad@mac.com> | 2012-02-24 15:39:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-02-24 18:22:22 (GMT) |
commit | ab9824e14f07111210ad113a982fd7523f73e9d3 (patch) | |
tree | a83aa3db6c18b953723bbf4ecd95233e2e2b64a3 /Docs | |
parent | 6a1c5a356911d3b75e60ecad86d7538e6de888f9 (diff) | |
download | CMake-ab9824e14f07111210ad113a982fd7523f73e9d3.zip CMake-ab9824e14f07111210ad113a982fd7523f73e9d3.tar.gz CMake-ab9824e14f07111210ad113a982fd7523f73e9d3.tar.bz2 |
cmake-mode.el: Make indentation case-insensitive (#12995)
Convert the block open and close matching expressions to be explicitly
insensitive to case. This way it will not matter whether Emacs is
sensitive to case when evaluating 'string-match'.
Diffstat (limited to 'Docs')
-rw-r--r-- | Docs/cmake-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Docs/cmake-mode.el b/Docs/cmake-mode.el index 4418bfa..9517455 100644 --- a/Docs/cmake-mode.el +++ b/Docs/cmake-mode.el @@ -68,9 +68,9 @@ set the path with these commands: "\\|" "[ \t\r\n]" "\\)*")) (defconst cmake-regex-block-open - "^\\(IF\\|MACRO\\|FOREACH\\|ELSE\\|ELSEIF\\|WHILE\\|FUNCTION\\)$") + "^\\([iI][fF]\\|[mM][aA][cC][rR][oO]\\|[fF][oO][rR][eE][aA][cC][hH]\\|[eE][lL][sS][eE]\\|[eE][lL][sS][eE][iI][fF]\\|[wW][hH][iI][lL][eE]\\|[fF][uU][nN][cC][tT][iI][oO][nN]\\)$") (defconst cmake-regex-block-close - "^[ \t]*\\(ENDIF\\|ENDFOREACH\\|ENDMACRO\\|ELSE\\|ELSEIF\\|ENDWHILE\\|ENDFUNCTION\\)[ \t]*(") + "^[ \t]*\\([eE][nN][dD][iI][fF]\\|[eE][nN][dD][fF][oO][rR][eE][aA][cC][hH]\\|[eE][nN][dD][mM][aA][cC][rR][oO]\\|[eE][lL][sS][eE]\\|[eE][lL][sS][eE][iI][fF]\\|[eE][nN][dD][wW][hH][iI][lL][eE]\\|[eE][nN][dD][fF][uU][nN][cC][tT][iI][oO][nN]\\)[ \t]*(") ;------------------------------------------------------------------------------ |