AlDanial / cloc

cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
GNU General Public License v2.0
19.78k stars 1.02k forks source link

cloc counts ReasonML //-prefixed line comments as code #759

Closed dm0n3y closed 1 year ago

dm0n3y commented 1 year ago

Describe the bug cloc counts ReasonML //-prefixed line comments as code.

cloc; OS; OS version

To Reproduce Create a ReasonML file. Add a line comment. Run cloc on the file.

Expected result Line comment counted as comment.

Additional context Saw that ReasonML support was added here: https://github.com/AlDanial/cloc/issues/330

dm0n3y commented 1 year ago

Ah I see now that the description for https://github.com/AlDanial/cloc/issues/330 said explicitly that ReasonML only supports /* */-delimited comments. This is no longer the case. Following the link that the issue author cited for /* */-comments now includes //-prefixed line comments as well.