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

Macro trailing newline escape causes parsing error #2066

Open
amylizzle opened this issue Oct 27, 2024 · 2 comments
Open

Macro trailing newline escape causes parsing error #2066

amylizzle opened this issue Oct 27, 2024 · 2 comments
Labels
bug Something isn't working Compiler Involves the OpenDream compiler

Comments

@amylizzle
Copy link
Contributor

#define BLOODSUCKER_RESTRICTED_SPECIES list( \
    /datum/species/synthetic, \
    /datum/species/plasmaman, \
    /datum/species/shadow/nightmare, \
    /datum/species/abductor, \
    /datum/species/android, \
    /datum/species/golem, \
    /datum/species/shadow, \
    /datum/species/skeleton, \
    /datum/species/zombie, \
    /datum/species/mutant, \
    /datum/species/dullahan \
) \

/thing/stuff
    var/thing = BLOODSUCKER_RESTRICTED_SPECIES
    name = "oh no"

errors on name def, parsing error

@ike709 ike709 added bug Something isn't working Compiler Involves the OpenDream compiler labels Oct 27, 2024
@amylizzle
Copy link
Contributor Author

oh @ZephyrTFA said this is actually fucked in byond anyways? idk maybe test it first

@ZephyrTFA
Copy link
Contributor

A trailing newline escape like that in a define will cause errors in normal byond depending on where the define is used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Compiler Involves the OpenDream compiler
Projects
None yet
Development

No branches or pull requests

3 participants