mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 04:24:43 +01:00
Replace \N with .
Older PCRE versions (coming with PHP 5.2) don't support \N yet.
This commit is contained in:
parent
93392c82e0
commit
10fc22f518
@ -55,7 +55,7 @@ class PHPParser_Comment
|
|||||||
if (false === strpos($text, "\n")) {
|
if (false === strpos($text, "\n")) {
|
||||||
// Single line comments don't need further processing
|
// Single line comments don't need further processing
|
||||||
return $text;
|
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
|
// Multi line comment of the type
|
||||||
//
|
//
|
||||||
// /*
|
// /*
|
||||||
|
Loading…
Reference in New Issue
Block a user