aBothe / Mono-D

D Add-In for MonoDevelop
http://wiki.dlang.org/Mono-D
Other
113 stars 26 forks source link

versioned block weird output #633

Closed rikkimax closed 8 years ago

rikkimax commented 8 years ago

So I was porting sljit to D (because why not) and on the second file it decided that:

static if(SLJIT_CONFIG_AUTO) {
    version(Windows) {

    } else {
        version(X86) {
            enum SLJIT_CONFIG_X86_32 = true;
        }{
        version(X86) {
            enum SLJIT_CONFIG_X86_32 = true;
        } else version(X86_64) {
            enum SLJIT_CONFIG_X86_64 = true;
        }
    }
}

Would appear as:

capture

aBothe commented 8 years ago

This is not a bug but a feature called conditional highlighting. It can be disabled in the D settings via the 'Enable Conditional Highlighting' flag

aBothe commented 8 years ago

anyway, :+1: for the 'because why not' :smile: