LuaPlusPlus / lua-plus-plus

Lua Plus Plus, made to implement Classes and a few other things.
GNU General Public License v3.0
9 stars 2 forks source link

L++ don't like comments in lua #32

Open FoksVHox opened 4 years ago

FoksVHox commented 4 years ago

Lua++ version: 1.0.4.9

Describe the bug The transpiler fucks up whenever there is a comment like this: // breaks Lpp

Steps To Reproduce

  1. Create a class
  2. Create a comment with // <text>
  3. Try and transpile
  4. See an error

Expected behavior A clear and concise description of what you expected to happen. It should just pass these on as normal comments

TomDotBat commented 4 years ago

Technically makes sense seeing as L++ is pretty much an extension of plain lua and c style comments are specific to gLua. I think that perhaps replacing C style comments to lua style should be something we add so it makes scripts cross-compatible.