summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2008-02-19 22:10:17 +0000
committerAlan Mackenzie <acm@muc.de>2008-02-19 22:10:17 +0000
commit2ae6c6b5f3bd0d42e0df6ffa0cd8c8cf8ba99c64 (patch)
tree35d423475a9093be8b9bbc2611abc9c342b7b773
parentc8018ede9b4c5072a4aa5ec9809bb1285af47d6a (diff)
downloademacs-2ae6c6b5f3bd0d42e0df6ffa0cd8c8cf8ba99c64.tar.gz
Set of changes so that "obtrusive" syntactic elements in a C/C++/ObjC
preprocessor line (e.g. an unbalanced string quote or unmatched paren) don't interact syntactically with stuff outside the CPP line. (c-cpp-matchers): Make it put regexp parens around "error\\|warning".
-rw-r--r--lisp/progmodes/cc-fonts.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el
index 087e71a1f11..698f83e0bd0 100644
--- a/lisp/progmodes/cc-fonts.el
+++ b/lisp/progmodes/cc-fonts.el
@@ -394,14 +394,14 @@ stuff. Used on level 1 and higher."
`(;; The stuff after #error and #warning is a message, so
;; fontify it as a string.
,@(when (c-lang-const c-cpp-message-directives)
- (let* ((re (c-make-keywords-re nil
+ (let* ((re (c-make-keywords-re 'appendable ; nil
(c-lang-const c-cpp-message-directives)))
(re-depth (regexp-opt-depth re)))
`((,(concat noncontinued-line-end
(c-lang-const c-opt-cpp-prefix)
re
"\\s +\\(.*\\)$")
- ,(+ ncle-depth re-depth 1) font-lock-string-face))))
+ ,(+ ncle-depth re-depth 1) font-lock-string-face t))))
;; Fontify filenames in #include <...> as strings.
,@(when (c-lang-const c-cpp-include-directives)