XAMPPRocky / tokei

Count your code, quickly.
Other
10.88k stars 527 forks source link

Provide a way for specifying single line docs #937

Open CIAvash opened 2 years ago

CIAvash commented 2 years ago

In Raku, one can specify both single and multi-line docs, just like normal comments. Example:

# A normal comment

#| A documentation AKA POD declaration
sub foo {}
adam-tokarski commented 2 years ago

@CIAvash What exactly is the problem? I've checked that (with most recent version though), and this example returns image

so it seems like this #| is properly recognized?

CIAvash commented 2 years ago

If I'm not mistaken tokei considers docs as code, so the result should be 1 comment(the first line), 2 code.

XAMPPRocky commented 2 years ago

By default docs are comments, but that can be changed in the settings