effekt-lang / effekt-lang/effekt-vscode

Wrong highlighting of a block in splice

Open
#57 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
5
Forks
5
PR merge metrics
No merged PRs in 30d

Description

The following program:
```scala
import stream
import stringbuffer

def main() =
println("test: ${collectString { ['h', 'e', 'l', 'l', 'o'].each }}")
```

highlights wrongly:
Image

I think the rough idea is to count braces inside of the splice -- maybe allow these as a separate top-level pattern that has higher priority than string interpolation, then everything might just work out ®.

Here's the relevant code:
https://github.com/effekt-lang/effekt-vscode/blob/e9241a1aa2b51b76c28fa5742e9b8891c7cbc721/syntaxes/effekt.tmLanguage.json#L245-L258

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.