Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New input format support request: LaTeX #8

Closed
GoogleCodeExporter opened this issue Aug 23, 2015 · 5 comments
Closed

New input format support request: LaTeX #8

GoogleCodeExporter opened this issue Aug 23, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link


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
Copy link
Author

I will add this as soon as possible.

/Adam Waldenberg

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

Great!

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

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision 16701a4d51f4.

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants