Skip to content

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 requested review from eed3si9n and keynmol January 18, 2023 07:25
@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