Module plugin.sloc
Calculates SLOC for Lua 5.1 scripts
WARNING: highly experimental! interface liable to change
Notes:
- SLOC's behaviour is based on David Wheeler's SLOCCount.
- Empty lines and comment don't count as significant.
- Empty lines in long strings are also insignificant. This is debatable. In SLOCCount, this allows counting of invalid multi- line strings for C. But an empty line is still an empty line.
- Ignores the --quiet option, print own result line.
Functions
post_lex (toklist, seminfolist, toklnlist) | Post-lexing processing, can work on lexer table output. |
Local Functions
split (blk) | Splits a block into a table of lines (minus EOLs). |
Functions
- post_lex (toklist, seminfolist, toklnlist)
-
Post-lexing processing, can work on lexer table output.
Parameters:
- toklist
- seminfolist
- toklnlist
Local Functions
- split (blk)
-
Splits a block into a table of lines (minus EOLs).
Parameters:
- blk string
Returns:
-
{string,...}
lines