The title of the stackexchange discussion is a little misleading. It really is: '"Hello, World" in what sloc thinks is zero lines of source code'
Most of the top solutions seem to take advantage of bugs in the way sloc tries to parse commented lines. e.g. many are:
/**/<do_something>/**/
And I'm surprised I don't see a related bug issue in the git repo: https://github.com/flosse/sloc/issuesStill this is a fun read. I'm curious to see what other tricks are out there.