cmake-mode.el: unscreamify symbols instead of words

cmake-unscreamify-buffer should unscream more than just
words. For example:

CHECK_FUNCTION_EXISTS (...)
This commit is contained in:
Kevin Burge 2015-10-08 13:27:54 -05:00 committed by Brad King
parent a935745d07
commit 47f4b3b662
1 changed files with 1 additions and 1 deletions

View File

@ -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)