boyter / scc

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nested Comments in D-Lang Problematic

boyter opened this issue · comments

/* 8 lines 5 code 1 comments 2 blanks */

void main() {
    auto x = 5; /+ a /+ nested +/ comment /* +/
    writefln("hello");
    auto y = 4; // */
}

Note that in the above /+ allows nested comments but that */ can be inside the different one. Currently scc is unable to deal with this.

Going to close. I think we are never going to fix this on the basis its such an edge case.