[svn:parrot] r37219 - trunk/t/codingstd

NotFound at svn.parrot.org NotFound at svn.parrot.org
Mon Mar 9 00:38:24 UTC 2009


Author: NotFound
Date: Mon Mar  9 00:38:24 2009
New Revision: 37219
URL: https://trac.parrot.org/parrot/changeset/37219

Log:
[cage] skip urls when looking for cpp comments, quick fix to TT #414

Modified:
   trunk/t/codingstd/c_cppcomments.t

Modified: trunk/t/codingstd/c_cppcomments.t
==============================================================================
--- trunk/t/codingstd/c_cppcomments.t	Mon Mar  9 00:27:46 2009	(r37218)
+++ trunk/t/codingstd/c_cppcomments.t	Mon Mar  9 00:38:24 2009	(r37219)
@@ -53,12 +53,14 @@
 # In the POD inside a C source code file, a hyperlink such as 
 # https://trac.parrot.org will be inaccurately reported as a C++-style
 # comment.
+# Quick fix added
 sub check_cppcomments {
     my $buf = shift;
     $buf =~ s{ (?:
                    (?: ' (?: \\\\ | \\' | [^'] )* ' )  # remove ' string
                  | (?: " (?: \\\\ | \\" | [^"] )* " )  # remove " string
                  | /\* .*? \*/                         # remove C comment
+		 | https?:\/\/                         # TT # 414 quick fix
                )
             }{}gsx;
 


More information about the parrot-commits mailing list