diff options
author | Kevin Burge <kevin.burge@systemware.com> | 2015-10-08 13:27:54 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-10-08 15:03:11 -0400 |
commit | 47f4b3b662da7f49fd0353b978eaf781608e9282 (patch) | |
tree | cace7fcefac8abedb201d2c927acf09353f3b6c9 /Auxiliary | |
parent | a935745d0730cf1cd6c1a880d71e36a39ad86f8c (diff) | |
download | cmake-47f4b3b662da7f49fd0353b978eaf781608e9282.tar.gz |
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')
-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 e50ae7b957..08ac4905ea 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) |