Many keywords not highlighted, indentation broken in Objective-C++ source editor
Originator: | mxn | ||
Number: | rdar://27937170 | Date Originated: | 20-Aug-2016 |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | |
Classification: | Other Bug | Reproducible: | Always |
Summary: When a source editor’s type is set to Objective-C++ Source, as would be the case with a .mm extension, various Objective-C++ and C++ keywords are not recognized as keywords. The source editor doesn’t highlight them as keywords and doesn’t indent or dedent subsequent lines based on the keywords. Steps to Reproduce: 1. Open the attached Objective-C++ source file, foo.mm. 2. Select the entire text and go to Editor ‣ Structure ‣ Re-Indent. Expected Results: • After step 1, keywords like @interface, @implementation, if, public, and switch are highlighted as keywords. • After step 2, lines 2–3, 6, 12–13, and 16 are unindented, and lines 19 and 22 are indented by two tabs. Actual Results: • After step 1, keywords like @interface, @implementation, if, public, and switch are not highlighted as keywords. • After step 2, lines 2–3, 6, 12–13, and 16 are indented by one tab, and lines 19 and 22 are indented by three tabs. Version: Xcode 8.0 beta 6 (8S201h) OS X 10.11.6 (15G31) Notes: Also reproduces in beta 5 but (as far as I can remember) not in beta 4. Does not reproduce in Xcode 7.3.1. Configuration: Attachments: successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!