Polychromatic icon indicating copy to clipboard operation
Polychromatic copied to clipboard

Wrong highlighting of inactive code

Open itmm opened this issue 10 years ago • 1 comments

If code is masked with #ifdefs, all classes in the nonactive parts will be colored. See the attached screenshot taken by creating an empty project, copying one method and disabling the code block.

bildschirmfoto

UIApplication, NSDictionary, UIScreen, and UIColor are colored.

I have no idea, if it is possible, but it would be great, if the unused code is greyed out.

itmm avatar Jul 07 '14 15:07 itmm

I tried to come up with a clever solution around this by looking at the parents of it, but this seems to be an issue with Xcode's parser marking all sub-items in a preprocessor conditional as an identifier. Not sure what the answer is here.

kolinkrewinkel avatar Mar 21 '15 18:03 kolinkrewinkel