PHP Syntax highlight doesn't handle {$variables} in double-quoted strings #199790
Labels
grammar
Syntax highlighting grammar
upstream-issue-linked
This is an upstream issue that has been reported upstream
Does this issue occur when all extensions are disabled?: Yes
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.Observed behavior
It is highlighted like this:
as if
$array
itself were expanded, and['x']
were again just part of the stringThe text was updated successfully, but these errors were encountered: