-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Syntax highlight doesn't handle {$variables} in double-quoted strings #454
Comments
Correct; thank you for reporting it to vscode. We are extending the highlighting with our semantic (to improve the colorization of type names in doc comments), so I assume we could do it for string interpolation. If vscode team won't reply any time soon, we may implement it. |
Tracked on KapitanOczywisty/language-php#15 |
The highlighting seems to work as expected now. We still need to trigger suggestion when a user types
|
The next pre-release will trigger suggestions after typing The highlighting seems to be fixed in the latest VSCode as well. |
I'm still observing it, and KapitanOczywisty/language-php#15 is still open 🤔
It's still not triggering after typing |
@php4fan thank you for letting me know;
|
There seems to have been no activity in KapitanOczywisty What confuses me is you posted a screenshot in this comment that showed the correct syntax highlight. |
@php4fan that means it must be a color theme thing! Try changing the color theme; and we will have to contact the theme author. |
What theme were you using when you had the right syntax highlight? I can't see any that gives that result. The one I'm using is "Default Dark modern" (never changed it) and the highlight of variables in strings is full of issues, beyond just variables in
None of the themes seem to get the |
It's "Dark Modern". You can also use this command: and check the actual tokens: so you can customize it using settings as described at https://stackoverflow.com/a/46946515/601646 |
I have reported this also against VSCode itself, because it does do PHP syntax highlight even without any extension, and I believe that if they do syntax highlight for any given language they must do it right.
However, I assume the extension also improves syntax highlight, right? so maybe this is also relevant for the extension.
The screenshot should speak for itself, otherwise see microsoft/vscode#199790
The text was updated successfully, but these errors were encountered: