# HG changeset patch # User Simon Marshall # Date 890844972 0 # Node ID febfd4282be6f218ff74810f80cb97206f003c02 # Parent a3d90bdad8f9c31fe4a29fcf825792bad99fb22d add some C/C++ keywords. diff -r a3d90bdad8f9 -r febfd4282be6 lisp/font-lock.el --- 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 says these are new. - "explicit" "mutable")))) + "explicit" "mutable" + ;; Branko Cibej 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)