flosse / sloc

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

Add asm support #61

Closed tomsmeding closed 8 years ago

tomsmeding commented 8 years ago

Most assemblers support ; as a comment marker, but multiline comments are far from standardised. Some assemblers (notably, nasm) don't support them at all as far as I can tell. This is to enable at least support for counting lines in assembly files using the standard ; comment marker.

flosse commented 8 years ago

Thanks for contributing!

Most assemblers support ; as a comment marker, but multiline comments are far from standardised.

so would you mind to add a test case where some different asm codes are used so that we be sure the results aren't garbage?

flosse commented 8 years ago

and a note within the readme would be great :)

tomsmeding commented 8 years ago

Something like this? Oh and by the way, the Objective-C{,++} entries in the languages list in the readme aren't in their lexicographical position. :p

tomsmeding commented 8 years ago

Looking at #55, having a ; within a string will also trip up this one... Not sure how to robustly handle that though.