summaryrefslogtreecommitdiff
path: root/lisp/progmodes/c-mode.el
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
commit0ce62eb25051e553e90aa63cb18d9db8aa447260 (patch)
tree68cbbe8590a3ec47bdb9ab9f67e65960daad8dab /lisp/progmodes/c-mode.el
parente5cd8a87da242884420c93cb007f1247296c8b0d (diff)
downloademacs-0ce62eb25051e553e90aa63cb18d9db8aa447260.tar.gz
(c-switch-label-regexp): Insist on colon after `default'.
Diffstat (limited to 'lisp/progmodes/c-mode.el')
-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 ()