huderlem / poryscript

High-level scripting language for gen 3 pokemon decompilation projects
https://www.huderlem.com/poryscript-playground/
MIT License
200 stars 22 forks source link

Bug: String Parser Creates an empty String #20

Closed SBird1337 closed 5 years ago

SBird1337 commented 5 years ago

Sometimes, and empty string is created. Steps to reproduce: 1) Compile the following script:

script MinimalCompleteStringParserBreaks {
    msgbox(format("Long cat is loooong once again\p"
                  "Very very loooong and we need to have "
                  "multiple lines to fit its loooongness"))
}

2) Observe, that the string parser creates an empty string in the output:

MinimalCompleteStringParserBreaks::
    msgbox MinimalCompleteStringParserBreaks_Text_0
    return

MinimalCompleteStringParserBreaks_Text_0:
    .string "Long cat is loooong once again\p"
    .string ""
    .string "Very very loooong and we need to have\n"
    .string ""
    .string "multiple lines to fit its loooongness$"
huderlem commented 5 years ago

659b73bb074be01cb5810eb21c1bbfdbb821c05e