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]: syntax highlighting fails for string literal union #1088

Open
spaceunifyfifty opened this issue Jul 29, 2024 · 0 comments
Open

[bug]: syntax highlighting fails for string literal union #1088

spaceunifyfifty opened this issue Jul 29, 2024 · 0 comments

Comments

@spaceunifyfifty
Copy link

Describe the bug

When annotating type of a parameter as a union of literal strings, only the first string correctly highlights.

Scastie snippet link

https://scastie.scala-lang.org/yhCU9W46TiKfXzrglYjr5g

To Reproduce

def fn(x: "yes" | "no") = ???

Expected behavior

the "no" string should also be highlighted.

Screenshot ( Optional )

image

Version

Scastie website

What browsers are you seeing the problem on?

Firefox

Relevant log output

No response

@spaceunifyfifty spaceunifyfifty changed the title [bug]: syntax highlighting fails for union [bug]: syntax highlighting fails for string literal union Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant