Skip to content
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

[BUG] String Interpolation is not supported #69

Open
3 tasks done
mmanela opened this issue May 22, 2024 · 0 comments
Open
3 tasks done

[BUG] String Interpolation is not supported #69

mmanela opened this issue May 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mmanela
Copy link

mmanela commented May 22, 2024

Describe the bug

The grammar does not handle string interpolation

Requirements

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

To Reproduce

Grammar does not handle string interpolation preventing properly highlighting variables inside the string

For example this expression

$y = "hello $x[0]";

Generates a tree like this, notice the right node is just a string

(expression_statement 
        (binary_expression 
          left: (variable) 
          right: (string))) 

Expected behavior

I expect to be able to highlight variables inside of a string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant