uctakeoff / vscode-counter

VS Code extension: counts blank lines, comment lines, and physical lines of source code in many programming languages.
MIT License
152 stars 20 forks source link

Counts documentation comments as code in Julia #83

Closed brianguenter closed 10 months ago

brianguenter commented 1 year ago

Julia has a special string comment format that is used to automatically generate documentation for functions:

"""This is a special documentation comment string that appears immediately before a function
more lines of documentation comment
even more lines of comment
"""
function juliafunc()
    return nothing
end
"""
vscode-counter incorrectly counts these documentation strings as code lines.

language    files   code    comment blank   total
Julia           1   7           0           0           5
uctakeoff commented 10 months ago

@brianguenter

I have never used julia at all. However, I found out that multiline comments seem to be #= ... =#. """ is a string. In VSCode Counter, strings are included in the code.