We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47840f1 commit 9ed1bf1Copy full SHA for 9ed1bf1
src/Lexer/Lexer.php
@@ -163,7 +163,7 @@ private function generateRegexp(): string
163
self::TOKEN_CLOSE_CURLY_BRACKET => '\\}',
164
165
self::TOKEN_COMMA => ',',
166
- self::TOKEN_COMMENT => '((?<![:/])\/\/[^\n]*)',
+ self::TOKEN_COMMENT => '((?<![:/])\/\/[^\\r?+\\n]*)',
167
self::TOKEN_VARIADIC => '\\.\\.\\.',
168
self::TOKEN_DOUBLE_COLON => '::',
169
self::TOKEN_DOUBLE_ARROW => '=>',
0 commit comments