diff options
author | Alan Mackenzie <acm@muc.de> | 2023-01-23 21:28:32 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2023-01-23 21:28:32 +0000 |
commit | c15c0f7f018f5beea02175603f45ff5edf6d3837 (patch) | |
tree | c54f8d4e9a3ac6d3eb775c6e0db5204aaade1c95 /lisp/progmodes/cc-vars.el | |
parent | 7f438ff543b7bd83cee6c75be1d16abc1215d37f (diff) | |
download | emacs-c15c0f7f018f5beea02175603f45ff5edf6d3837.tar.gz |
CC Mode: Change the default value of objc-font-lock-extra-types to nil
This fixes bug #59234, in which random identifiers in a .m file were getting
fontified as types.
* lisp/progmodes/cc-vars.el (objc-font-lock-extra-types): Change the default
value to nil.
* etc/NEWS: Mention the change in default value of objc-font-lock-extra-types,
and how to get the old behavior back.
Diffstat (limited to 'lisp/progmodes/cc-vars.el')
-rw-r--r-- | lisp/progmodes/cc-vars.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el index 2206e0fcab6..60ed3521b8a 100644 --- a/lisp/progmodes/cc-vars.el +++ b/lisp/progmodes/cc-vars.el @@ -1609,8 +1609,7 @@ as a type name.") :type 'c-extra-types-widget :group 'c) -(defcustom objc-font-lock-extra-types - (list (concat "[" c-upper "]\\sw*[" c-lower "]\\sw*")) +(defcustom objc-font-lock-extra-types nil (c-make-font-lock-extra-types-blurb "ObjC" "objc-mode" (concat "For example, a value of (\"[" c-upper "]\\\\sw*[" c-lower "]\\\\sw*\") means capitalized words are treated as type names (the requirement for a |