mirror of
https://github.com/danog/phpdoc-parser.git
synced 2024-11-26 20:15:11 +01:00
PhpDocParser: change whitespace handling
This commit is contained in:
parent
2e73ac5f3d
commit
b316443d88
@ -43,15 +43,16 @@ class PhpDocParser
|
||||
$children[] = new Ast\PhpDoc\PhpDocTextNode($textNode);
|
||||
$textNode = '';
|
||||
}
|
||||
|
||||
$children[] = $this->parseTag($tokens);
|
||||
|
||||
} else {
|
||||
$textNode .= $tokens->currentTokenValue();
|
||||
$tokens->next();
|
||||
}
|
||||
|
||||
if ($tokens->tryConsumeHorizontalWhiteSpace()) {
|
||||
$textNode .= $tokens->prevTokenValue();
|
||||
if ($tokens->tryConsumeHorizontalWhiteSpace()) {
|
||||
$textNode .= $tokens->prevTokenValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user