aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorSimon Marshall1998-03-25 16:56:12 +0000
committerSimon Marshall1998-03-25 16:56:12 +0000
commitae7460eed6673d40f781e24534c8cd794b4f687e (patch)
tree45aa3145c193dd4a1a1a7373c9d5d62ea0170d75 /lisp
parentce2cc8377dfc18233a111fb74ae56c1d837cede0 (diff)
downloademacs-ae7460eed6673d40f781e24534c8cd794b4f687e.tar.gz
emacs-ae7460eed6673d40f781e24534c8cd794b4f687e.zip
add some C/C++ keywords.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/font-lock.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 02edb8acf7a..4fb8fa576ba 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -2244,7 +2244,7 @@ See also `c-font-lock-extra-types'.")
2244(let* ((c-keywords 2244(let* ((c-keywords
2245 (eval-when-compile 2245 (eval-when-compile
2246 (regexp-opt '("break" "continue" "do" "else" "for" "if" "return" 2246 (regexp-opt '("break" "continue" "do" "else" "for" "if" "return"
2247 "switch" "while") t))) 2247 "switch" "while" "sizeof") t)))
2248 (c-type-types 2248 (c-type-types
2249 `(mapconcat 'identity 2249 `(mapconcat 'identity
2250 (cons 2250 (cons
@@ -2420,13 +2420,15 @@ See also `c++-font-lock-extra-types'.")
2420 (cons 2420 (cons
2421 (,@ (eval-when-compile 2421 (,@ (eval-when-compile
2422 (regexp-opt 2422 (regexp-opt
2423 '("auto" "extern" "register" "static" "typedef" "struct" 2423 '("extern" "auto" "register" "static" "typedef" "struct"
2424 "union" "enum" "signed" "unsigned" "short" "long" 2424 "union" "enum" "signed" "unsigned" "short" "long"
2425 "int" "char" "float" "double" "void" "volatile" "const" 2425 "int" "char" "float" "double" "void" "volatile" "const"
2426 "inline" "friend" "bool" "virtual" "complex" "template" 2426 "inline" "friend" "bool" "virtual" "complex" "template"
2427 "namespace" "using" 2427 "namespace" "using"
2428 ;; Mark Mitchell <mmitchell@usa.net> says these are new. 2428 ;; Mark Mitchell <mmitchell@usa.net> says these are new.
2429 "explicit" "mutable")))) 2429 "explicit" "mutable"
2430 ;; Branko Cibej <branko.cibej@hermes.si> suggests this.
2431 "export"))))
2430 c++-font-lock-extra-types) 2432 c++-font-lock-extra-types)
2431 "\\|")) 2433 "\\|"))
2432 ;; 2434 ;;
@@ -2450,7 +2452,8 @@ See also `c++-font-lock-extra-types'.")
2450 (list 2452 (list
2451 ;; 2453 ;;
2452 ;; Class names etc. 2454 ;; Class names etc.
2453 (list (concat "\\<\\(class\\|public\\|private\\|protected\\)\\>[ \t]*" 2455 (list (concat "\\<\\(class\\|public\\|private\\|protected\\|typename\\)\\>"
2456 "[ \t]*"
2454 "\\(" c++-type-spec "\\)?") 2457 "\\(" c++-type-spec "\\)?")
2455 '(1 font-lock-type-face) 2458 '(1 font-lock-type-face)
2456 '(3 (if (match-beginning 6) 2459 '(3 (if (match-beginning 6)