changeset 21286:febfd4282be6

add some C/C++ keywords.
author Simon Marshall <simon@gnu.org>
date Wed, 25 Mar 1998 16:56:12 +0000
parents a3d90bdad8f9
children f61d91aef100
files lisp/font-lock.el
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/font-lock.el	Wed Mar 25 16:52:19 1998 +0000
+++ b/lisp/font-lock.el	Wed Mar 25 16:56:12 1998 +0000
@@ -2244,7 +2244,7 @@
 (let* ((c-keywords
 	(eval-when-compile
 	  (regexp-opt '("break" "continue" "do" "else" "for" "if" "return"
-			"switch" "while") t)))
+			"switch" "while" "sizeof") t)))
        (c-type-types
 	`(mapconcat 'identity
 	  (cons 
@@ -2420,13 +2420,15 @@
 	  (cons 
 	   (,@ (eval-when-compile
 		 (regexp-opt
-		  '("auto" "extern" "register" "static" "typedef" "struct"
+		  '("extern" "auto" "register" "static" "typedef" "struct"
 		    "union" "enum" "signed" "unsigned" "short" "long"
 		    "int" "char" "float" "double" "void" "volatile" "const"
 		    "inline" "friend" "bool" "virtual" "complex" "template"
 		    "namespace" "using"
 		    ;; Mark Mitchell <mmitchell@usa.net> says these are new.
-		    "explicit" "mutable"))))
+		    "explicit" "mutable"
+		    ;; Branko Cibej <branko.cibej@hermes.si> suggests this.
+		    "export"))))
 	   c++-font-lock-extra-types)
 	  "\\|"))
        ;;
@@ -2450,7 +2452,8 @@
    (list
     ;;
     ;; Class names etc.
-    (list (concat "\\<\\(class\\|public\\|private\\|protected\\)\\>[ \t]*"
+    (list (concat "\\<\\(class\\|public\\|private\\|protected\\|typename\\)\\>"
+		  "[ \t]*"
 		  "\\(" c++-type-spec "\\)?")
 	  '(1 font-lock-type-face)
 	  '(3 (if (match-beginning 6)