diff lisp/progmodes/cc-langs.el @ 105206:60cf2b54da00

cc-langs.el (c-nonlabel-token-key): Allow quoted character constants (as case labels). cc-engine.el (c-beginning-of-statement-1): Correct buggy bracketing.
author Alan Mackenzie <acm@muc.de>
date Sat, 26 Sep 2009 09:18:41 +0000
parents 864eb5478bfc
children b27aeda9c1fd
line wrap: on
line diff
--- a/lisp/progmodes/cc-langs.el	Sat Sep 26 09:08:54 2009 +0000
+++ b/lisp/progmodes/cc-langs.el	Sat Sep 26 09:18:41 2009 +0000
@@ -2885,7 +2885,7 @@
 i.e. before \":\".  Only used if `c-recognize-colon-labels' is set."
   t (concat
      ;; Don't allow string literals.
-     "[\"']\\|"
+     "\"\\|"
      ;; All keywords except `c-label-kwds' and `c-protection-kwds'.
      (c-make-keywords-re t
        (set-difference (c-lang-const c-keywords)