]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-type-list-kwds): If "operator" is followed by an identifier in C++
authorMartin Stjernholm <mast@lysator.liu.se>
Wed, 24 Sep 2003 13:56:09 +0000 (13:56 +0000)
committerMartin Stjernholm <mast@lysator.liu.se>
Wed, 24 Sep 2003 13:56:09 +0000 (13:56 +0000)
then it's a type.

lisp/progmodes/cc-langs.el

index 0eb009dd6221b218823e8841d5dff2fe5ed7e523..19555b37527a4226a7b45b98cd7f5be7a1fc3cfc 100644 (file)
@@ -1362,7 +1362,8 @@ too.
 Note: Use `c-typeless-decl-kwds' for keywords followed by a function
 or variable identifier (that's being defined)."
   t    '("struct" "union" "enum")
-  (c c++ awk) nil
+  (c awk) nil
+  c++  '("operator")
   objc (append '("@class" "@interface" "@implementation" "@protocol")
               (c-lang-const c-type-list-kwds))
   java '("class" "import" "interface" "new" "extends" "implements" "throws")