为什么Xcode4在条件编译块中没有做任何语法高亮?

don*_*ile 6 xcode objective-c conditional-compilation ios xcode4

例:

#ifdef FREE_VERSION
    tf.text = @"Free";
    NSLog(@"FREE VERSION");
#else
    tf.text = @"Paid";
    NSLog(@"PAID VERSION");
#endif
Run Code Online (Sandbox Code Playgroud)

第一部分在Xcode中看起来很好.

    tf.text = @"Free";
    NSLog(@"FREE VERSION");
Run Code Online (Sandbox Code Playgroud)

语法突出显示.但是,第二部分不是:

tf.text = @"付费";

NSLog(@"PAID VERSION");

有没有像"不要在条件cimpilation代码的#else部分中进行语法高亮"这样的设置?

Joe*_*Joe 9

XCode将尝试确定将采用哪个预处理器分支.预期执行的分支将具有语法突出显示而另一个则不具有语法突出显示.