summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-02-13 18:10:28 +0000
committerRichard M. Stallman <rms@gnu.org>1995-02-13 18:10:28 +0000
commit7f6278186c2ed09a5eb0bad3fe180e91d5e1a42f (patch)
treedca4769b3aff9adeff0f589dcf70e8d7a6cd352c
parent717980d865021329372529181b791605d880dbf2 (diff)
downloademacs-7f6278186c2ed09a5eb0bad3fe180e91d5e1a42f.tar.gz
(c-switch-label-regexp): Insist on colon after `default'.
-rw-r--r--lisp/progmodes/c-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el
index 8f2a61a0362..7bc185dd55f 100644
--- a/lisp/progmodes/c-mode.el
+++ b/lisp/progmodes/c-mode.el
@@ -165,7 +165,7 @@ regardless of where in the line point is when the TAB command is used.")
;;; Regular expression used internally to recognize labels in switch
;;; statements.
-(defconst c-switch-label-regexp "case[ \t'/(]\\|default\\(\\S_\\|'\\)")
+(defconst c-switch-label-regexp "case[ \t'/(]\\|default[ \t]*:")
(defun c-mode ()