Zezombye / overpy

High-level language for the Overwatch Workshop with support for compilation and decompilation.
GNU General Public License v3.0
180 stars 28 forks source link

adding comments after while RULE_CONDITION makes compilation fail #298

Closed yubber closed 1 year ago

yubber commented 2 years ago

having a loop such as

do:
    pass
while RULE_CONDITION # comment

generates an error like this

Error: Expected '(' after 'RULE_CONDITION', but got '# comment'

which is rectified when the comment is removed

pharingWell commented 1 year ago

Note that this is only for # comments because of the way that do while is setup. Possible way to rectify this would be to have the while contain parentheses, but in reality, just use /**/. It's just like with #!define, it's just how it works

Zezombye commented 1 year ago

Fixed in 6.13