Open Garmelon opened 3 years ago
Thank you for your issue! I'll have to investigate further, but you can see what's happening in tokei with tokei -vvv
.
Block docstrings are not counted as markdown.
Source file:
/*!
Module docstring
*/
/**
Item docstring
*/
struct CoolStuff;
tokei
output:
===============================================================================
Language Files Lines Code Comments Blanks
===============================================================================
Rust 1 8 1 6 1
===============================================================================
Total 1 8 1 6 1
===============================================================================
This rust code is being counted weirdly:
It results in the output
wc -l
agrees), yet the total reported by tokei is 1.If I add more empty lines between
/* A */
and/// B
, they are simply ignored. If I change/// B
to// B
, the output is correct.Similar things happen with this simplified two-liner example:
Tokei output:
Tested on commit fd08c8b889f96986d3a05a17c58998ca062e9176 (the current master) with a freshly cloned tokei.