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

bugfix: Semantic tokens for multiline strings in Scala3 worksheets #5691

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

jkciesluk
Copy link
Member

For multiline strings, we highlight the entire line, so we need to adjust the length by removing additional indent

For multiline strings, we highlight the entire line, so we need to adjust the length by removing additional indent
@jkciesluk jkciesluk force-pushed the sem-worksheet-3-str branch from 8607fd9 to e61f522 Compare October 2, 2023 06:53
@jkciesluk jkciesluk requested a review from kasiaMarek October 2, 2023 06:53
Copy link
Contributor

@kasiaMarek kasiaMarek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -472,26 +473,47 @@ class Compilers(
}

@tailrec
@nowarn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise we get warning that match is not exhaustive, but we can ignore since the length of this list will always be a multiple of 5

@jkciesluk jkciesluk merged commit 0d2739f into scalameta:main Oct 2, 2023
22 of 24 checks passed
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