changeset 82842:c71eaf555f05

(c-other-decl-block-key-in-symbols-alist): new language variable.
author Alan Mackenzie <acm@muc.de>
date Sat, 25 Aug 2007 17:06:06 +0000
parents 7af2114fd324
children 768766d373a7
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 17:05:11 2007 +0000
+++ b/lisp/progmodes/cc-langs.el	Sat Aug 25 17:06:06 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.