comment_parser
comment_parser copied to clipboard
PHP Support?
Hello,
Do you have any plans to support extracting comments from PHP files?
Many thanks Rob
Hi Rob, I don't currently but I can add support in a few hours later tonight. I'll look into it and get back to you.
-JR On Fri, Jul 8, 2016 at 2:59 AM robsmallridge [email protected] wrote:
Hello,
Do you have any plans to support extracting comments from PHP files?
Many thanks Rob
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jeanralphaviles/comment_parser/issues/1, or mute the thread https://github.com/notifications/unsubscribe/AFmoqvmk7x-CvJ4De2dF_TwEi8oRBY10ks5qTh-agaJpZM4JH48A .
hi @robsmallridge
I wrote a similar programme here](https://github.com/kelvintaywl/code_comment) which you can simply pip install code_comment
, and it supports PHP if this is still an issue!
I mean no disrespect to the author of this repo! just wanted to highlight that i started creating a lib myself to make it easy to extend support for more languages.
PHP comments are similar to C-style, except they also support #
style commenting. Was your intention to support both?
I just opened #31 for those still having this issue. While its true that comments are basically the same as in C, PHP has the tags and https://en.wikipedia.org/wiki/Here_document strings which need some pretty heavy regex.