aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2020-06-24 19:45:30 +0000
committerAlan Mackenzie2020-06-24 19:45:30 +0000
commitb6ea0e0834fb63c977299f35701f17a1a3c6a044 (patch)
tree879a9b9c173c43697c378681b06362a68b91bf64
parent599004f712657e5f6e25a878505a61cda1595d0e (diff)
downloademacs-b6ea0e0834fb63c977299f35701f17a1a3c6a044.tar.gz
emacs-b6ea0e0834fb63c977299f35701f17a1a3c6a044.zip
Make switch work in AWK Mode. Fixes bug #41923
lisp/progmodes/cc-langs.el (c-block-stmt-2-kwds): Insert "switch" into the AWK Mode entry. (c-case-kwds): Remove the special entry for AWK Mode.
-rw-r--r--lisp/progmodes/cc-langs.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index dcffc0d31b4..814a85c72a6 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -2786,7 +2786,7 @@ Keywords here should also be in `c-block-stmt-1-kwds'."
2786 java '("for" "if" "switch" "while" "catch" "synchronized") 2786 java '("for" "if" "switch" "while" "catch" "synchronized")
2787 idl nil 2787 idl nil
2788 pike '("for" "if" "switch" "while" "foreach") 2788 pike '("for" "if" "switch" "while" "foreach")
2789 awk '("for" "if" "while")) 2789 awk '("for" "if" "switch" "while"))
2790 2790
2791(c-lang-defconst c-block-stmt-2-key 2791(c-lang-defconst c-block-stmt-2-key
2792 ;; Regexp matching the start of any statement followed by a paren sexp 2792 ;; Regexp matching the start of any statement followed by a paren sexp
@@ -2866,8 +2866,7 @@ nevertheless contains a list separated with `;' and not `,'."
2866(c-lang-defconst c-case-kwds 2866(c-lang-defconst c-case-kwds
2867 "The keyword(s) which introduce a \"case\" like construct. 2867 "The keyword(s) which introduce a \"case\" like construct.
2868This construct is \"<keyword> <expression> :\"." 2868This construct is \"<keyword> <expression> :\"."
2869 t '("case") 2869 t '("case"))
2870 awk nil)
2871 2870
2872(c-lang-defconst c-case-kwds-regexp 2871(c-lang-defconst c-case-kwds-regexp
2873 ;; Adorned regexp matching any "case"-like keyword. 2872 ;; Adorned regexp matching any "case"-like keyword.