Charles Hines <hines(a)gderome.com> wrote:
void
foo(int a)
{
switch (a)
{
case 1: // Example: "1:2:3"
{
}
break; // "unbalanced paren" error occurs here
}
}
The following patch fixes this. Thanks.
diff -u -r5.106 cc-langs.el
--- cc-langs.el 2001/02/18 16:09:44 5.106
+++ cc-langs.el 2001/05/05 13:14:36
@@ -344,7 +344,7 @@
(make-variable-buffer-local 'c-comment-start-regexp)
;; Regexp describing a switch's case or default label for all languages
-(defconst c-switch-label-key "\\(\\(case[( \t]+\\S .*\\)\\|default[ \t]*\\):")
+(defconst c-switch-label-key "\\(\\(case[( \t]+\\S [^:]*\\)\\|default[
\t]*\\):")
;; Regexp describing any label.
(defconst c-label-key (concat c-symbol-key ":\\([^:]\\|$\\)"))