* bug#12255: 24.2; [PATCH] wrong regexp in c-basic-matchers-before
@ 2012-08-22 3:04 Leo
2012-08-22 5:54 ` Leo
0 siblings, 1 reply; 2+ messages in thread
From: Leo @ 2012-08-22 3:04 UTC (permalink / raw)
To: 12255; +Cc: bug-cc-mode
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)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#12255: 24.2; [PATCH] wrong regexp in c-basic-matchers-before
2012-08-22 3:04 bug#12255: 24.2; [PATCH] wrong regexp in c-basic-matchers-before Leo
@ 2012-08-22 5:54 ` Leo
0 siblings, 0 replies; 2+ messages in thread
From: Leo @ 2012-08-22 5:54 UTC (permalink / raw)
To: 12255-done; +Cc: bug-cc-mode
On 2012-08-22 11:04 +0800, Leo wrote:
> It seems to me this regexp in c-basic-matchers-before would never
> succeed unless @ is of word syntax.
Sorry for the noise.
The syntax for @ is word thanks to c-identifier-syntax-modifications.
Leo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-22 5:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-22 3:04 bug#12255: 24.2; [PATCH] wrong regexp in c-basic-matchers-before Leo
2012-08-22 5:54 ` Leo
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).