TOKEN_OPEN_PHPDOC (/**) must be always followed by whitespace

This commit is contained in:
Jan Tvrdik 2017-12-16 16:04:40 +01:00
parent f8a1d21be1
commit dd308d8554

View File

@ -126,7 +126,7 @@ class Lexer
self::TOKEN_DOUBLE_ARROW => '=>',
self::TOKEN_EQUAL => '=',
self::TOKEN_OPEN_PHPDOC => '/\\*\\*',
self::TOKEN_OPEN_PHPDOC => '/\\*\\*(?=\\s)',
self::TOKEN_CLOSE_PHPDOC => '\\*/',
self::TOKEN_PHPDOC_TAG => '@[a-z-]++',
self::TOKEN_PHPDOC_EOL => '\\r?+\\n\\h*+(?:\\*(?!/)\\h*+)?',