objc-font-lock-extra-types
objc-font-lock-extra-types is a variable defined in `
cc-vars.el
'.
Its value is
("[[:upper:]]\\sw*[[:lower:]]\\sw*")
Documentation:
*List of extra types (aside from the type keywords) to recognize in ObjC mode.
Each list item should be a regexp matching a single identifier.
For example, a value of ("[[:upper:]]\\sw*[[:lower:]]\\sw*") means
capitalized words are treated as type names (the requirement for a
lower case char is to avoid recognizing all-caps macro and constant
names).
Note that items on this list that don't include any regexp special
characters are automatically optimized using `regexp-opt', so you
should not use `regexp-opt' explicitly to build regexps here.
On decoration level 3 (and higher, where applicable), a method is used
that finds most types and declarations by syntax alone. This variable
is still used as a first step, but other types are recognized
correctly anyway in most cases. Therefore this variable should be
fairly restrictive and not contain patterns that are uncertain.
Note that this variable is only consulted when the major mode is
initialized. If you change it later you have to reinitialize CC Mode
by doing M-x objc-mode.
Despite the name, this variable is not only used for font locking but
also elsewhere in CC Mode to tell types from other identifiers.
You can customize this variable.