-
Notifications
You must be signed in to change notification settings - Fork 54
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
Variables that will be expanded in double quoted strings are not parsed as variables #34
Comments
Interpolated strings in general are pretty tricky. Looks like we might be able to get away with an |
There is also the
Maybe this will complicate things 😅 |
Oof, that’s tricky as well. |
Seems like strings work somewhat similarly to double quoted strings in bash? Here's our current rule for that in the bash parser: https://github.com/tree-sitter/tree-sitter-bash/blob/5203b504db454180de58af6f0ea6fc10df47b487/grammar.js#L417-L430. |
http://php.net/manual/en/language.types.string.php#language.types.string.parsing
Program:
Output:
Parser:
All of these variables are parsed as
string
:Version:
0.13.0
The text was updated successfully, but these errors were encountered: