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

Macros with brackets and comments throw errors #292

Closed pharingWell closed 2 years ago

pharingWell commented 2 years ago
Issue type
Summary

Error thrown incorrectly

Steps to reproduce

image

Put a comment in-line with a macro that ends in a bracket

Expected results

Ignores the comment and does not pass it

Actual results

Throws this error image

Zezombye commented 2 years ago

Macros are literally copy-pasted into the code, so the comment "eats" the rest of the line where it is called :p

To fix it, use an inline comment /**/ or put the comment on the line above.