[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12255: 24.2; [PATCH] wrong regexp in c-basic-matchers-before
From: |
Leo |
Subject: |
bug#12255: 24.2; [PATCH] wrong regexp in c-basic-matchers-before |
Date: |
Wed, 22 Aug 2012 11:04:10 +0800 |
It seems to me this regexp in c-basic-matchers-before would never
succeed unless @ is of word syntax.
(concat "\\<"
(regexp-opt
'("@interface" "@implementation" "@protocol")
t)
"\\>")
Should this patch be applied?
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el
index 2d116e1e..f0f40d54 100644
--- a/lisp/progmodes/cc-fonts.el
+++ b/lisp/progmodes/cc-fonts.el
@@ -855,7 +855,7 @@ (c-lang-defconst c-basic-matchers-before
;; The @interface/@implementation/@protocol directives.
,(c-make-font-lock-search-function
- (concat "\\<"
+ (concat "\\_<"
(regexp-opt
'("@interface" "@implementation" "@protocol")
t)
- bug#12255: 24.2; [PATCH] wrong regexp in c-basic-matchers-before,
Leo <=