flosse / sloc

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

add latex language support #102

Closed barracks510 closed 6 years ago

flosse commented 6 years ago

thx

gilbertohasnofb commented 5 years ago

@flosse @barracks510 I believe .tex files use a single % to start a comment, is there a reason you used start = /\%{2}/?

Also, it would be good to add this language to the 'Supported languages' section of README.md.

flosse commented 5 years ago

@flosse @barracks510 I believe .tex files use a single % to start a comment, is there a reason you used start = /\%{2}/?

I can't remember if there is a reason :-\

Also, it would be good to add this language to the 'Supported languages' section of README.md.

:+1:

gilbertohasnofb commented 5 years ago

I can't remember if there is a reason :-\

I am happy to open a PR fixing that, I am 100% sure that LaTeX uses single % for comments.