changeset 78657:d9f04596fa48

(c-other-decl-block-key-in-symbols-alist): new language variable.
author Alan Mackenzie <acm@muc.de>
date Sat, 25 Aug 2007 16:54:09 +0000
parents b3cad8795b91
children 6a12da4aa52f
files lisp/progmodes/cc-langs.el
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cc-langs.el	Sat Aug 25 16:50:26 2007 +0000
+++ b/lisp/progmodes/cc-langs.el	Sat Aug 25 16:54:09 2007 +0000
@@ -1601,6 +1601,17 @@
   t (c-make-keywords-re t (c-lang-const c-other-block-decl-kwds)))
 (c-lang-defvar c-other-decl-block-key (c-lang-const c-other-decl-block-key))
 
+(c-lang-defvar c-other-decl-block-key-in-symbols-alist
+  (mapcar
+   (lambda (elt)
+     (cons elt
+	   (if (string= elt "extern")
+	       'inextern-lang
+	     (intern (concat "in" elt)))))
+   (c-lang-const c-other-block-decl-kwds))
+  "Alist associating keywords in c-other-decl-block-decl-kwds with
+their matching \"in\" syntactic symbols.")
+
 (c-lang-defconst c-typedef-decl-kwds
   "Keywords introducing declarations where the identifier(s) being
 declared are types.