Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong highlighting of inactive code #32

Open
itmm opened this issue Jul 7, 2014 · 1 comment
Open

Wrong highlighting of inactive code #32

itmm opened this issue Jul 7, 2014 · 1 comment

Comments

@itmm
Copy link

itmm commented Jul 7, 2014

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.

@kolinkrewinkel
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants