Wrong parsing in PhpStorm

Here is sample of class, which wrong parsing in PhpStorm

<?php

class Library_Scan {


    

     private function somePreg($body = null){

//        preg_match("/Название:<\/td><td class=dl width=65%>(.*?)<\/td><\/tr>/i", $body, $arr);

        preg_match("/dl>Тест:<\/td><td class=dl>(.*?)<\/td><\/tr>/i", $body, $arr);
        return true;
    }
    
    
}
2 comments

some problems with comments, so below code is normal

<?php

class Library_Scan {
     private function somePreg($body = null){

/*        preg_match("/Название:<\/td><td class=dl width=65%>(.*?)<\/td><\/tr>/i", $body, $arr); */

        preg_match("/dl>Тест:<\/td><td class=dl>(.*?)<\/td><\/tr>/i", $body, $arr);
        return true;
    }
    
    
}

0

Parsing is correct. http://www.php.net/manual/en/language.basic-syntax.comments.php

The "one-line" comment styles only comment to the end of the line or the current block of PHP code, whichever comes first. This means that HTML code after // ... ?> or # ... ?> WILL be printed: ?> breaks out of PHP mode and returns to HTML mode, and // or # cannot influence that.

0

Please sign in to leave a comment.