ccpp icon indicating copy to clipboard operation
ccpp copied to clipboard

#if, #else, #endif don't work with whitespace in front of it

Open RuurdBijlsma opened this issue 3 years ago • 1 comments

Example:

if(missingItems.Length > 0) {
    #if DEPENDENCY_ITEMEXCHANGE
        print("DEPENDENCY DETECTED");
    #else
        print("DEPENDENCY NOT HERE");
    #endif
}

Because of the tab in front of #if it doesn't work

RuurdBijlsma avatar Mar 18 '22 16:03 RuurdBijlsma

This is actually a good thing, because this parser doesn't have any context info, so it would break inline scripts:

const string manialink = """
#Will_Break
    #Wont_Break
"""

N0tExisting avatar Mar 18 '22 17:03 N0tExisting