We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23f9997 commit ca97bbbCopy full SHA for ca97bbb
src/Parser/Comment/RegexCommentParser.php
@@ -14,7 +14,7 @@ final class RegexCommentParser implements CommentParserInterface
14
. '|(?:(?:\h*\*\/)(*MARK:T_COMMENT_END))'
15
. '|(?:(?:^\h*\*\h*)(*MARK:T_COMMENT_PREFIX))'
16
. '|(?:(?:\r\n|\n)(*MARK:T_NEWLINE))'
17
- . '|(?:(?:.+?(?:\r\n|\n|$))(*MARK:T_TEXT))'
+ . '|(?:(?:.+?(?:(?=\*+\/)|(?:\r\n|\n|$)))(*MARK:T_TEXT))'
18
. ')/Ssum';
19
20
/**
0 commit comments