comparison lisp/font-lock.el @ 48523:442a4d06a99f

(c++-font-lock-extra-types): Add various STL classes.
author Richard M. Stallman <rms@gnu.org>
date Sun, 24 Nov 2002 18:59:48 +0000
parents d7662618cd11
children cdcae1240434
comparison
equal deleted inserted replaced
48522:70e8f2b6672e 48523:442a4d06a99f
1897 The value of this variable is used when Font Lock mode is turned on." 1897 The value of this variable is used when Font Lock mode is turned on."
1898 :type 'font-lock-extra-types-widget 1898 :type 'font-lock-extra-types-widget
1899 :group 'font-lock-extra-types) 1899 :group 'font-lock-extra-types)
1900 1900
1901 (defcustom c++-font-lock-extra-types 1901 (defcustom c++-font-lock-extra-types
1902 '("\\sw+_t" 1902 '("\\sw+_t\\(?:ype\\)?"
1903 "\\([iof]\\|str\\)+stream\\(buf\\)?" "ios" 1903
1904 "string" "rope" 1904 "string" "rope"
1905
1905 "list" "slist" 1906 "list" "slist"
1906 "deque" "vector" "bit_vector" 1907 "deque" "vector" "bit_vector"
1908
1907 "set" "multiset" 1909 "set" "multiset"
1908 "map" "multimap" 1910 "map" "multimap"
1909 "hash\\(_\\(m\\(ap\\|ulti\\(map\\|set\\)\\)\\|set\\)\\)?"
1910 "stack" "queue" "priority_queue" 1911 "stack" "queue" "priority_queue"
1911 "type_info" 1912 "type_info"
1912 "iterator" "const_iterator" "reverse_iterator" "const_reverse_iterator" 1913
1913 "reference" "const_reference") 1914 ;; (regexp-opt '("ios_base" "ios" "istream" "ostream" "istringstream" "ifstream" "iostream" "ofstream" "ostringstream" "fstream" "stringstream"))
1915 "fstream\\|i\\(?:fstream\\|os\\(?:_base\\|tream\\)?\\|str\\(?:\\(?:ingstr\\)?eam\\)\\)\\|\\(?:o\\(?:f\\|string\\)?\\|string\\)stream"
1916
1917 ;; (regexp-opt '("hash" "hash_set" "hash_map" "hash_multiset" "hash_multimap"))
1918 "hash\\(?:_\\(?:m\\(?:ap\\|ulti\\(?:map\\|set\\)\\)\\|set\\)\\)?"
1919
1920 ;; (regexp-opt '("pointer" "const_pointer" "reference" "const_reference" "iterator" "const_iterator" "reverse_iterator" "const_reverse_iterator" "size_type" "difference_type" "allocator_type"))
1921 "allocator_type\\|const_\\(?:iterator\\|pointer\\|re\\(?:ference\\|verse_iterator\\)\\)\\|difference_type\\|iterator\\|pointer\\|re\\(?:ference\\|verse_iterator\\)\\|size_type"
1922 )
1914 "*List of extra types to fontify in C++ mode. 1923 "*List of extra types to fontify in C++ mode.
1915 Each list item should be a regexp not containing word-delimiters. 1924 Each list item should be a regexp not containing word-delimiters.
1916 For example, a value of (\"string\") means the word string is treated as a type 1925 For example, a value of (\"string\") means the word string is treated as a type
1917 name. 1926 name.
1918 1927