PlutoLang / Pluto

A superset of Lua 5.4 with a focus on general-purpose programming.
https://pluto-lang.org/docs/Introduction
MIT License
337 stars 20 forks source link

Fix not skipping far enough when casecond has ternary #856

Closed Sainan closed 1 month ago

XmiliaH commented 1 month ago

I did not test but this seems to be missing some cases: case true?(tab:print()):tab: the ternary is ending within the brackets in the skip logic. Or when having a closure with a switch statement in the case value case function()switch 1 do case 1: return 1 end end: