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
Expected behavior: In the above code in PHP, the chunk {$array['x']} is expanded into the value of what's inside the {}, which is an element of the array.
The braces should be somehow highlighted, and $array['x'] shoould be highlighted in a way similar to how array elements are highlighted outside of a string: with the array name, brackets, and index highlighted in different colors.
Actual behavior: It is highlighted like this:
as if
the braces were just part of the string,
only the variable $array itself were expanded, and
the portion ['x'] were again just part of the string
Description
PHP Syntax highlight doesn't handle {$variables} in double-quoted strings.
Steps to Reproduce
Expected behavior: In the above code in PHP, the chunk
{$array['x']}
is expanded into the value of what's inside the{}
, which is an element of the array.The braces should be somehow highlighted, and
$array['x']
shoould be highlighted in a way similar to how array elements are highlighted outside of a string: with the array name, brackets, and index highlighted in different colors.Actual behavior: It is highlighted like this:
as if
$array
itself were expanded, and['x']
were again just part of the stringReproduces how often: always
Versions
VS Code 1.84.2
Additional Information
Originally from @php4fan in microsoft/vscode#199790
The text was updated successfully, but these errors were encountered: