cgag / loc

Count lines of code quickly.
MIT License
2.31k stars 126 forks source link

fix lua counting #29

Closed cgag closed 7 years ago

cgag commented 7 years ago

There were actually 2 bugs here:

1) problem where the multi-line pattern had the single-line pattern as a prefix (for lua: --, --[[. 2) If the the start and end of multi-line comment are different lengths, we end up calling is_character_boundary out of bounds, which returns false, causing us to skip over valid characters

fixes #25