lunarmodules / luacov

LuaCov is a simple coverage analyzer for Lua code.
http://lunarmodules.github.io/luacov/
MIT License
300 stars 68 forks source link

exclude goto statements and labels from accounting #95

Closed Koeng101 closed 2 years ago

Koeng101 commented 2 years ago

This solves #89

From the folks at DFHack - https://github.com/DFHack/luacov/pull/1

I need this code for some stuff I am working on, so I'd appreciate a merge. The code looks good to me, and is working for at least two other people. Would be great to get this upstreamed.

hishamhm commented 2 years ago

Thanks @Koeng101 and @myk002 !

I'm not sure if having this is an issue for other Lua versions and I can't really check it thorougly right now, but if it proves to be a case we can version-gate that later.

(I'm very low on bandwidth for maintaining LuaCov — in fact, the previous maintainer passed away and I'm carrying the torch, but I'd love to get some maintainership help on this!)