davidmwine / gitinspector

Automatically exported from code.google.com/p/gitinspector
GNU General Public License v3.0
0 stars 0 forks source link

New input format support request: LaTeX #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

I suggest to add LaTeX to the list of _input_ formats to analyze so you can do:
./gitinspector.py -f tex

Comments in LaTeX are lines starting at % but not at \%, like this:
%comment comment
code code code % comment comment
code code %
code code 50 \% code and 40\% code %comment comment

Original issue reported on code.google.com by iocheson...@gmail.com on 29 Jun 2013 at 10:12

GoogleCodeExporter commented 9 years ago
I will add this as soon as possible.

/Adam Waldenberg

Original comment by gitinspe...@ejwa.se on 29 Jun 2013 at 10:19

GoogleCodeExporter commented 9 years ago
I quickly looked in to it and I will add support for % comments. It also seems 
to be a good idea to add support for multi-line comments from the verbatim 
package in the form:

\begin{comment}
     ...
     my comment
     ...
\end{comment}

/Adam Waldenberg

Original comment by gitinspe...@ejwa.se on 29 Jun 2013 at 10:36

GoogleCodeExporter commented 9 years ago
Great!

Original comment by iocheson...@gmail.com on 29 Jun 2013 at 10:40

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 16701a4d51f4.

Original comment by gitinspe...@ejwa.se on 29 Jun 2013 at 11:54

GoogleCodeExporter commented 9 years ago
Done; just like all other formats, gitinspector only considers a line to be a 
comment line whenever it is a *pure* comment line with no ordinary code.

Eventually; I might add some kind of percentage calculation depending on how 
much of
the line is a comment.

Also; LaTex is not enabled by default; see the commit message in the revision 
above
for more information.

/Adam Waldenberg

Original comment by gitinspe...@ejwa.se on 29 Jun 2013 at 11:58