We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dec05c9 commit 58375a9Copy full SHA for 58375a9
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 => '((?<![:/])\/\/[^\\r\\n]*)',
+ self::TOKEN_COMMENT => '(?<![:/])\/\/[^\\r\\n]*',
167
self::TOKEN_VARIADIC => '\\.\\.\\.',
168
self::TOKEN_DOUBLE_COLON => '::',
169
self::TOKEN_DOUBLE_ARROW => '=>',
0 commit comments