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 486b638 commit f4a91afCopy full SHA for f4a91af
src/Lexer/Lexer.php
@@ -153,8 +153,8 @@ private function initialize(): void
153
154
self::TOKEN_HORIZONTAL_WS => '[\\x09\\x20]++',
155
156
- // anything but TOKEN_CLOSE_PHPDOC or TOKEN_HORIZONTAL_WS or TOKEN_EOL
157
- self::TOKEN_OTHER => '(?:(?!\\*/)[^\\s])++',
+ // anything but TOKEN_CLOSE_PHPDOC or TOKEN_HORIZONTAL_WS or TOKEN_EOL or TOKEN_UNION or TOKEN_CLOSE_ANGLE_BRACKET or TOKEN_COMMA
+ self::TOKEN_OTHER => '(?:(?!\\*/)[^\\s\\|>,])++',
158
];
159
160
$this->regexp = '~(' . implode(')|(', $patterns) . ')~Asi';
0 commit comments