diff options
author | Kevin Burge <kevin.burge@systemware.com> | 2015-10-08 18:27:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-10-08 19:03:11 (GMT) |
commit | 47f4b3b662da7f49fd0353b978eaf781608e9282 (patch) | |
tree | cace7fcefac8abedb201d2c927acf09353f3b6c9 /Auxiliary/cmake-mode.el | |
parent | a935745d0730cf1cd6c1a880d71e36a39ad86f8c (diff) | |
download | CMake-47f4b3b662da7f49fd0353b978eaf781608e9282.zip CMake-47f4b3b662da7f49fd0353b978eaf781608e9282.tar.gz CMake-47f4b3b662da7f49fd0353b978eaf781608e9282.tar.bz2 |
cmake-mode.el: unscreamify symbols instead of words
cmake-unscreamify-buffer should unscream more than just
words. For example:
CHECK_FUNCTION_EXISTS (...)
Diffstat (limited to 'Auxiliary/cmake-mode.el')
-rw-r--r-- | Auxiliary/cmake-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Auxiliary/cmake-mode.el b/Auxiliary/cmake-mode.el index e50ae7b..08ac490 100644 --- a/Auxiliary/cmake-mode.el +++ b/Auxiliary/cmake-mode.el @@ -177,7 +177,7 @@ the indentation. Otherwise it retains the same position on the line" (interactive) (save-excursion (goto-char (point-min)) - (while (re-search-forward "^\\([ \t]*\\)\\(\\w+\\)\\([ \t]*(\\)" nil t) + (while (re-search-forward "^\\([ \t]*\\)\\_<\\(\\(?:\\w\\|\\s_\\)+\\)\\_>\\([ \t]*(\\)" nil t) (replace-match (concat (match-string 1) |