[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master b6ea0e0: Make switch work in AWK Mode. Fixes bug #41923
From: |
Alan Mackenzie |
Subject: |
master b6ea0e0: Make switch work in AWK Mode. Fixes bug #41923 |
Date: |
Wed, 24 Jun 2020 15:49:08 -0400 (EDT) |
branch: master
commit b6ea0e0834fb63c977299f35701f17a1a3c6a044
Author: Alan Mackenzie <acm@muc.de>
Commit: Alan Mackenzie <acm@muc.de>
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.
---
lisp/progmodes/cc-langs.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index dcffc0d..814a85c 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'."
java '("for" "if" "switch" "while" "catch" "synchronized")
idl nil
pike '("for" "if" "switch" "while" "foreach")
- awk '("for" "if" "while"))
+ awk '("for" "if" "switch" "while"))
(c-lang-defconst c-block-stmt-2-key
;; Regexp matching the start of any statement followed by a paren sexp
@@ -2866,8 +2866,7 @@ nevertheless contains a list separated with `;' and not
`,'."
(c-lang-defconst c-case-kwds
"The keyword(s) which introduce a \"case\" like construct.
This construct is \"<keyword> <expression> :\"."
- t '("case")
- awk nil)
+ t '("case"))
(c-lang-defconst c-case-kwds-regexp
;; Adorned regexp matching any "case"-like keyword.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master b6ea0e0: Make switch work in AWK Mode. Fixes bug #41923,
Alan Mackenzie <=