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

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

Open
RuurdBijlsma opened this issue Mar 18, 2022 · 1 comment
Open

Comments

@RuurdBijlsma
Copy link

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

@N0tExisting
Copy link

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
"""

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