Skip to content

Commit ca97bbb

Browse files
committed
Fix inline tags parsing
1 parent 23f9997 commit ca97bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Parser/Comment/RegexCommentParser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class RegexCommentParser implements CommentParserInterface
1414
. '|(?:(?:\h*\*\/)(*MARK:T_COMMENT_END))'
1515
. '|(?:(?:^\h*\*\h*)(*MARK:T_COMMENT_PREFIX))'
1616
. '|(?:(?:\r\n|\n)(*MARK:T_NEWLINE))'
17-
. '|(?:(?:.+?(?:\r\n|\n|$))(*MARK:T_TEXT))'
17+
. '|(?:(?:.+?(?:(?=\*+\/)|(?:\r\n|\n|$)))(*MARK:T_TEXT))'
1818
. ')/Ssum';
1919

2020
/**

0 commit comments

Comments
 (0)