You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The syntax highlighting in docblocks for PHP code fails when a parameter has DNF in the type declaration, for example:
/** * An example function. * @param string $a The first argument. * @param ClassA|(ClassB&ClassC) $b The second argument. * @param int $c The third argument. * @return void */functionexample(string$a, ClassA|(ClassB&ClassC) $b, int$c) {
// no-op
}
In this case, text after ClassA|(ClassB&ClassC) continues to be highlighted as if it continues as the type declaration, until the end of the docblock.
Description
The syntax highlighting in docblocks for PHP code fails when a parameter has DNF in the type declaration, for example:
In this case, text after
ClassA|(ClassB&ClassC)
continues to be highlighted as if it continues as the type declaration, until the end of the docblock.Related links:
Expected behavior: [What you expect to happen]
Syntax highlighting for DNF parameters in a doc block works as well as it does in the function signature
Actual behavior: [What actually happens]
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
VS Code version: Code 1.88.0, which is using commit 5e8f000.
Additional Information
[Any additional information, configuration or data that might be necessary to reproduce the issue.]
Originally from @jameswatts in microsoft/vscode#209758
The text was updated successfully, but these errors were encountered: