diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-11-24 18:59:48 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-11-24 18:59:48 +0000 |
commit | 633d0ba56ac8c127b42af5f73dda60ec8773d574 (patch) | |
tree | 815fc6aab6921f46c3ca143b46ba7be571ffc06b /lisp/font-lock.el | |
parent | ebfa5c375edc2ad19a0d3eab60d8ab8f2c682d61 (diff) | |
download | emacs-633d0ba56ac8c127b42af5f73dda60ec8773d574.tar.gz |
(c++-font-lock-extra-types): Add various STL classes.
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r-- | lisp/font-lock.el | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index f183a7bf8d0..03a3f61b5a7 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -1899,18 +1899,27 @@ The value of this variable is used when Font Lock mode is turned on." :group 'font-lock-extra-types) (defcustom c++-font-lock-extra-types - '("\\sw+_t" - "\\([iof]\\|str\\)+stream\\(buf\\)?" "ios" + '("\\sw+_t\\(?:ype\\)?" + "string" "rope" + "list" "slist" "deque" "vector" "bit_vector" + "set" "multiset" "map" "multimap" - "hash\\(_\\(m\\(ap\\|ulti\\(map\\|set\\)\\)\\|set\\)\\)?" "stack" "queue" "priority_queue" "type_info" - "iterator" "const_iterator" "reverse_iterator" "const_reverse_iterator" - "reference" "const_reference") + + ;; (regexp-opt '("ios_base" "ios" "istream" "ostream" "istringstream" "ifstream" "iostream" "ofstream" "ostringstream" "fstream" "stringstream")) + "fstream\\|i\\(?:fstream\\|os\\(?:_base\\|tream\\)?\\|str\\(?:\\(?:ingstr\\)?eam\\)\\)\\|\\(?:o\\(?:f\\|string\\)?\\|string\\)stream" + + ;; (regexp-opt '("hash" "hash_set" "hash_map" "hash_multiset" "hash_multimap")) + "hash\\(?:_\\(?:m\\(?:ap\\|ulti\\(?:map\\|set\\)\\)\\|set\\)\\)?" + + ;; (regexp-opt '("pointer" "const_pointer" "reference" "const_reference" "iterator" "const_iterator" "reverse_iterator" "const_reverse_iterator" "size_type" "difference_type" "allocator_type")) + "allocator_type\\|const_\\(?:iterator\\|pointer\\|re\\(?:ference\\|verse_iterator\\)\\)\\|difference_type\\|iterator\\|pointer\\|re\\(?:ference\\|verse_iterator\\)\\|size_type" + ) "*List of extra types to fontify in C++ mode. Each list item should be a regexp not containing word-delimiters. For example, a value of (\"string\") means the word string is treated as a type |