]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-other-decl-block-key-in-symbols-alist): new language variable.
authorAlan Mackenzie <acm@muc.de>
Sat, 25 Aug 2007 16:54:09 +0000 (16:54 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 25 Aug 2007 16:54:09 +0000 (16:54 +0000)
lisp/progmodes/cc-langs.el

index c5d9c162520d122f1126c16f5963de4dfdf726b4..5f9dbad3be2c27b5162ec3f60b5d2c7cfdaaff98 100644 (file)
@@ -1601,6 +1601,17 @@ will be handled."
   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.