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: Respect `end` statements #16

Closed huderlem closed 5 years ago

huderlem commented 5 years ago

Currently, poryscript will change the end to return when it's the very last command in a script. I don't believe this is an issue if you use end inside an if block, or other kind of block. Poryscript should always preserve and end commands, since those are functionally different than return, in that they completely stop the script from executing.

huderlem commented 5 years ago

fff7181edc165f38981addeed2f6e25820ac8d4f