Skip Menu |

This queue is for tickets about the Regexp-Common CPAN distribution.

Report information
The Basics
Id: 13174
Status: resolved
Priority: 0/
Queue: Regexp-Common

People
Owner: Nobody in particular
Requestors: chris+rt [...] chrisdolan.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.120
Fixed in: (no value)



Subject: Add JavaDoc to Regexp::Common::comment
Here's a tiny patch to recognize JavaDoc comments in Regexp::Common::comment. The patch is against Regexp::Common v2.120, which uses comment.pm v2.116. -- Chris --- comment.pm-orig 2005-06-09 12:02:08.000000000 -0500 +++ comment.pm 2005-06-09 12:03:21.000000000 -0500 @@ -50,6 +50,9 @@ to_eol => ['//'], from_to => [[qw {/* */}]]}, + {languages => [qw /JavaDoc/], + from_to => [[qw {/** */}]]}, + {languages => [qw /CLU LaTeX slrn TeX/], to_eol => ['%']},
Subject: Add Javadoc to Regexp::Common::comment
From: cdolan [...] cpan.org
Err, sorry, here's a better patch which spells Javadoc correctly and includes documentation. Gotta work on that submit button trigger finger... -- Chris
--- comment.pm-orig 2005-06-09 12:02:08.000000000 -0500 +++ comment.pm 2005-06-09 12:15:49.000000000 -0500 @@ -50,6 +50,9 @@ to_eol => ['//'], from_to => [[qw {/* */}]]}, + {languages => [qw /Javadoc/], + from_to => [[qw {/** */}]]}, + {languages => [qw /CLU LaTeX slrn TeX/], to_eol => ['%']}, @@ -683,6 +686,14 @@ C</*>, and end with C<*/>. If C<{-keep}> is used, only C<$1> will be set, and set to the entire comment. +=item Javadoc + +The I<Javadoc> documentation syntax is demarked with a subset of +ordinary Java comments to separate it from code. Comments start with +C</**> end with C<*/>. If C<{-keep}> is used, only C<$1> will be set, +and set to the entire comment. See +L<http://java.sun.com/j2se/javadoc/writingdoccomments/>. + =item JavaScript The I<JavaScript> language has two forms of comments. Comments that start with
Thank you. This has been included in release 2011041701.
Thank you. This has been included in release 2011041701.