tokei icon indicating copy to clipboard operation
tokei copied to clipboard

Provide a way for specifying single line docs

Open CIAvash opened this issue 2 years ago • 3 comments

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 {}

CIAvash avatar Aug 14 '22 17:08 CIAvash

@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?

adam-tokarski avatar Sep 01 '22 14:09 adam-tokarski

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

CIAvash avatar Sep 03 '22 03:09 CIAvash

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

XAMPPRocky avatar Sep 03 '22 11:09 XAMPPRocky