flosse / sloc

simple tool to count SLOC (source lines of code)
MIT License
944 stars 84 forks source link

fix #48: don't count interpolated strings in coffeescript as comments #66

Closed bwin closed 8 years ago

bwin commented 8 years ago

What still doesn't work is a hashtag in a string like code "words # more". This still matches as 'mixed', but that's another issue...

edit: Caveat: When a comment starts with #{ it is ignored. This can happen when commenting out an object literal, but this is an edge case, while interpolation is not.

bwin commented 8 years ago

See the commit msgs for why I deleted some lines of the original coffeescript language test. (BTW where I am it's 1am, so I kept my word.)

bwin commented 8 years ago

I can rebase if you want me to.

flosse commented 8 years ago

awesome!