boyter / scc

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
MIT License
6.28k stars 250 forks source link

Improve Lua and add Luau support #407

Closed Heliodex closed 9 months ago

Heliodex commented 9 months ago

Improves Lua complexity and comment checks, adding --[=[ ]=], --[==[ ]==], etc for comments as is in Lua, and multiline string support with [[ ]]. (unsure if this conflicts with detecting --[[ ]] comments)

Also adds Luau support, essentially copy-pasted from Lua as Luau is based on it, only adding ` ` support for strings.

boyter commented 9 months ago

Thanks so much!