From 10fc22f51891d9ce3b96c271ab3eb4aa26765de5 Mon Sep 17 00:00:00 2001 From: nikic Date: Fri, 11 May 2012 20:38:05 +0200 Subject: [PATCH] Replace \N with . Older PCRE versions (coming with PHP 5.2) don't support \N yet. --- lib/PHPParser/Comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PHPParser/Comment.php b/lib/PHPParser/Comment.php index 3417e50..61f9bd8 100644 --- a/lib/PHPParser/Comment.php +++ b/lib/PHPParser/Comment.php @@ -55,7 +55,7 @@ class PHPParser_Comment if (false === strpos($text, "\n")) { // Single line comments don't need further processing return $text; - } elseif (preg_match('((*BSR_ANYCRLF)(*ANYCRLF)^\N*(?:\R\s+\*\N*)+$)', $text)) { + } elseif (preg_match('((*BSR_ANYCRLF)(*ANYCRLF)^.*(?:\R\s+\*.*)+$)', $text)) { // Multi line comment of the type // // /*