summaryrefslogtreecommitdiffstats
path: root/Docs
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-06-20 18:10:21 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-06-20 18:10:21 (GMT)
commitbf59bd27069a9eace1bcf96d6636a709d611491e (patch)
treea0f57235cc2be610b01a9d297098b60d081780e4 /Docs
parent454c7ad2b6f2f02b5a3e9931ca77089efe398565 (diff)
downloadCMake-bf59bd27069a9eace1bcf96d6636a709d611491e.zip
CMake-bf59bd27069a9eace1bcf96d6636a709d611491e.tar.gz
CMake-bf59bd27069a9eace1bcf96d6636a709d611491e.tar.bz2
BUG: fix highlight for comments in multiple buffers
Diffstat (limited to 'Docs')
-rw-r--r--Docs/cmake-mode.el25
1 files changed, 10 insertions, 15 deletions
diff --git a/Docs/cmake-mode.el b/Docs/cmake-mode.el
index bf21fc0..40d8d19 100644
--- a/Docs/cmake-mode.el
+++ b/Docs/cmake-mode.el
@@ -139,21 +139,16 @@
(kill-all-local-variables)
(setq major-mode 'cmake-mode)
(setq mode-name "CMAKE")
-
- ; Create the syntax table if it doesn't exist.
- (if (not cmake-mode-syntax-table)
- (progn
- (setq cmake-mode-syntax-table (make-syntax-table))
- (set-syntax-table cmake-mode-syntax-table)
-
- ; Define comment syntax.
- (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)
- (modify-syntax-entry ?\n ">" cmake-mode-syntax-table)
- )
- )
+
+ ; 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)
+ (modify-syntax-entry ?\n ">" cmake-mode-syntax-table)
+
; Setup font-lock mode.
(make-local-variable 'font-lock-defaults)