diff options
author | Syohei YOSHIDA <syohex@gmail.com> | 2014-11-12 07:17:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-11-12 13:40:14 (GMT) |
commit | 30f14aebeee90bc1af6236888599db86b2bd8fae (patch) | |
tree | db4bbf3d20b237c9305c2afde4299cf52f112367 /Auxiliary | |
parent | addff66d33ccbf5a7d54d2ed3e859ac5d862297e (diff) | |
download | CMake-30f14aebeee90bc1af6236888599db86b2bd8fae.zip CMake-30f14aebeee90bc1af6236888599db86b2bd8fae.tar.gz CMake-30f14aebeee90bc1af6236888599db86b2bd8fae.tar.bz2 |
cmake-mode.el: syntax of '_' should be treated as symbol
Word commands, such as foward-word(M-f), backward-kill-word(M-backspace),
don't work well like other major-modes if syntax of '_' is treated as "word".
Tested-by: Guillaume Papin <guillaume.papin@parrot.com>
Diffstat (limited to 'Auxiliary')
-rw-r--r-- | Auxiliary/cmake-mode.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Auxiliary/cmake-mode.el b/Auxiliary/cmake-mode.el index c8b9f8b..f1470f3 100644 --- a/Auxiliary/cmake-mode.el +++ b/Auxiliary/cmake-mode.el @@ -202,7 +202,7 @@ the indentation. Otherwise it retains the same position on the line" ;; Keyword highlighting regex-to-face map. ;; (defconst cmake-font-lock-keywords - (list '("^[ \t]*\\(\\w+\\)[ \t]*(" 1 font-lock-function-name-face)) + (list '("^[ \t]*\\([[:word:]_]+\\)[ \t]*(" 1 font-lock-function-name-face)) "Highlighting expressions for CMAKE mode." ) @@ -241,7 +241,6 @@ the indentation. Otherwise it retains the same position on the line" ; Create the syntax table (setq cmake-mode-syntax-table (make-syntax-table)) (set-syntax-table cmake-mode-syntax-table) - (modify-syntax-entry ?_ "w" cmake-mode-syntax-table) (modify-syntax-entry ?\( "()" cmake-mode-syntax-table) (modify-syntax-entry ?\) ")(" cmake-mode-syntax-table) (modify-syntax-entry ?# "<" cmake-mode-syntax-table) |