Set 'compilation-mode-font-lock-keywords' for MSVC.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 20 Jan 2011 17:57:43 +0200
changeset 554 c191c36b0e36
parent 553 5d10932ca9c0
child 555 7b2833356d27
Set 'compilation-mode-font-lock-keywords' for MSVC.
.emacs-my
--- a/.emacs-my	Thu Jan 20 17:56:40 2011 +0200
+++ b/.emacs-my	Thu Jan 20 17:57:43 2011 +0200
@@ -1131,11 +1131,12 @@
     (add-to-list 'compilation-error-regexp-alist '("^\\( +\\[csc\\] \\|\\)\\(.*\\)(\\([0-9]*\\),\\([0-9]*\\)):" 2 3 4))
     (add-to-list 'compilation-error-regexp-alist '("^ *\\(.*\\)(\\([0-9]*\\)) +:" 1 2))
     (add-to-list 'compilation-error-regexp-alist '("^\"?\\([^\"]*\\)\"?,\\([0-9]*\\) .*\\[.*\\]: " 1 2)) ; KEIL compiler
+    (when (boundp 'compilation-mode-font-lock-keywords)
+      (add-to-list 'compilation-mode-font-lock-keywords '("\\(/[Oo][Uu][Tt]:[^[:blank:]]+\\)" . 1))
+      (add-to-list 'compilation-mode-font-lock-keywords '("[[:blank:]]\\(/F[oe][^[:blank:]]+\\)" . 1))
+      )
     ))
 
-;; (add-to-list 'compilation-mode-font-lock-keywords '("\\(/[Oo][Uu][Tt]:[^ 	]+\\)" . 1))
-;; (add-to-list 'compilation-mode-font-lock-keywords '("[ 	]\\(/F[oe][^ 	]+\\)" . 1))
-
 ;;; ----------------------------------------------------------------
 (message "TAGS, etags, ctags, GNU GLOBAL")