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

feat: add an explicit interpolator field #165

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

ckipp01
Copy link
Collaborator

@ckipp01 ckipp01 commented Jan 18, 2023

The problem

Currently when you come across string interpolation you don't get any
special highlighting for the actual interpolator meaning:

ivy"com.lihaoyi::os-lib:0.9.0"

Is all colored the same.

The Solution

The pr makes 2 changes.

  • The identifier we use for the interpolator now becomes a field for
    no reason other than I thought it'd be nice to just give it a name
  • A hightlight query that captures it and assigns it to function.call.

_The problem_

Currently when you come across string interpolation you don't get any
special highlighting for the actual interpolator meaning:

```scala
ivy"com.lihaoyi::os-lib:0.9.0"
```

I all colored the same.

_The Solution_

The pr makes 2 changes.

- The `identifier` we use for the interpolator now becomes a field for
  no reason other than I thought it'd be nice to just give it a name
- A hightlight query that captures it and assigns it to `function.call`.
@ckipp01 ckipp01 merged commit be931be into tree-sitter:master Jan 18, 2023
@ckipp01 ckipp01 deleted the interpolator branch January 18, 2023 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants